Make WordPress Core

Ticket #43680: 43680.2.diff

File 43680.2.diff, 750 bytes (added by spacedmonkey, 7 years ago)
  • src/wp-includes/class-wp-user-query.php

     
    613613                        $this->total_users = (int) $wpdb->get_var( apply_filters( 'found_users_query', 'SELECT FOUND_ROWS()' ) );
    614614                }
    615615
     616                /**
     617                 * Filters the raw user / user fields results array.
     618                 *
     619                 * @since 5.0.0
     620                 *
     621                 * @param Array Array of users / user fields
     622                 * @param WP_User_Query $this The WP_User_Query instance (passed by reference).
     623                 */
     624                $this->results = apply_filters_ref_array( 'users_results', array( $this->results, &$this ) );
     625
    616626                if ( ! $this->results ) {
    617627                        return;
    618628                }