mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed member directory scripts enqueue;
- added integration with User Location extension; - sanitize $_GET variables in wp-admin side;
This commit is contained in:
@@ -602,6 +602,15 @@ if ( ! class_exists( 'um\core\Shortcodes' ) ) {
|
||||
$post_data['template'] = $post_data['mode'];
|
||||
}
|
||||
|
||||
if ( 'directory' == $args['mode'] ) {
|
||||
wp_enqueue_script( 'um_members' );
|
||||
if ( is_rtl() ) {
|
||||
wp_enqueue_style( 'um_members_rtl' );
|
||||
} else {
|
||||
wp_enqueue_style( 'um_members' );
|
||||
}
|
||||
}
|
||||
|
||||
if ( 'directory' != $args['mode'] ) {
|
||||
$args = array_merge( $post_data, $args );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user