• Dear author,

    Using your great plugin in a theme. Went to users > users and I noticed that the active column has issues sorting.

    It seems like it will sort all admins but it will not sort through all users. I will try have a look at it again later.

    Please if you know this issue or how to deal with it. Let me know.

    Cheers

    Rommel

    http://ww.wp.xz.cn/plugins/user-activation-email/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Mikkel Rommelhoff

    (@mrommel)

    One of our team members solved this by changing the following code in the plugin.

    Line 362

    function sortable_active_query( $query )
    {
    if( !is_admin() )
    return;

    global $wpdb;
    if( ‘active’ == $query->query_vars[‘orderby’] )
    {
    $query->query_from = $query->query_from .”,”. $wpdb->usermeta;
    $query->query_where = str_replace( ‘WHERE 1=1’, ” WHERE ( $wpdb->usermeta.meta_key = ‘uae_user_activation_code’ AND $wpdb->usermeta.user_id = $wpdb->users.ID ) “, $query->query_where );
    $query->query_orderby = str_replace( ‘user_login’, “meta_value”, $query->query_orderby );
    }
    }

    Plugin Author NateJacobs

    (@natejacobs)

    Thanks for finding that. That is indeed a bug. I’ll fix it in the next version which will be out shortly after WordPress 3.7.

    Dear Nate,

    first of all thank you for great plugin.

    Unfortunately Column active filter not working with (my) WordPress Version 3.9.2.

    mRommel fixing also did not solve the problem.

    Best regards
    Allen

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Column active filter not working’ is closed to new replies.