mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 14:43:49 +09:00
- changed translate file;
This commit is contained in:
@@ -57,7 +57,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Enqueue' ) ) {
|
||||
* Load js for Add/Edit User form
|
||||
*/
|
||||
function load_role_wrapper() {
|
||||
wp_register_script( 'um_admin_role_wrapper', $this->js_url . 'um-admin-role-wrapper.js', '', '', true );
|
||||
wp_register_script( 'um_admin_role_wrapper', $this->js_url . 'um-admin-role-wrapper.js', '', ultimatemember_version, true );
|
||||
wp_enqueue_script( 'um_admin_role_wrapper' );
|
||||
|
||||
$localize_roles_data = get_option( 'um_roles' );
|
||||
|
||||
@@ -107,10 +107,10 @@ add_filter( 'um_prepare_user_query_args', 'um_remove_special_users_from_list', 9
|
||||
*
|
||||
* @return mixed|void
|
||||
*/
|
||||
function um_add_search_to_query( $query_args, $args ){
|
||||
function um_add_search_to_query( $query_args, $args ) {
|
||||
extract( $args );
|
||||
|
||||
if( !empty( $args['search_filters'] ) ){
|
||||
if ( ! empty( $args['search_filters'] ) ) {
|
||||
$_REQUEST['um_search'] = 1;
|
||||
}
|
||||
|
||||
@@ -118,9 +118,9 @@ function um_add_search_to_query( $query_args, $args ){
|
||||
|
||||
$query = UM()->permalinks()->get_query_array();
|
||||
|
||||
if( !empty( $args['search_filters'] ) ){
|
||||
if ( ! empty( $args['search_filters'] ) ) {
|
||||
parse_str( $args['search_filters'], $search_filters );
|
||||
if( $search_filters && is_array( $search_filters ) ){
|
||||
if ( $search_filters && is_array( $search_filters ) ) {
|
||||
$query = array_merge( $search_filters, $query );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user