Make WordPress Core

Ticket #33449: wp-user-query.patch

File wp-user-query.patch, 517 bytes (added by Veraxus, 9 years ago)

Fixes notice generated by WP_User_Query introduced in 4.3

  • src/wp-includes/user.php

     
    659659                        $qv['blog_id'] = $blog_id = 0; // Prevent extra meta query
    660660                }
    661661
    662                 if ( $qv['has_published_posts'] && $blog_id ) {
     662                if ( isset( $qv['has_published_posts'] ) && $blog_id ) {
    663663                        if ( true === $qv['has_published_posts'] ) {
    664664                                $post_types = get_post_types( array( 'public' => true ) );
    665665                        } else {