Make WordPress Core

Ticket #25160: 25160.diff

File 25160.diff, 6.4 KB (added by wonderboymusic, 9 years ago)
  • src/wp-admin/includes/deprecated.php

     
    533533                        $this->query_where .= " AND $wpdb->users.ID = $wpdb->usermeta.user_id AND meta_key = '{$level_key}'";
    534534                }
    535535
    536                 do_action_ref_array( 'pre_user_search', array( &$this ) );
     536                do_action( 'pre_user_search', $this );
    537537        }
    538538
    539539        /**
  • src/wp-includes/class-wp.php

     
    328328                 *
    329329                 * @since 2.1.0
    330330                 *
    331                  * @param WP &$this Current WordPress environment instance (passed by reference).
     331                 * @param WP $this Current WordPress environment instance (passed by reference).
    332332                 */
    333                 do_action_ref_array( 'parse_request', array( &$this ) );
     333                do_action( 'parse_request', $this );
    334334        }
    335335
    336336        /**
     
    443443                 *
    444444                 * @since 2.1.0
    445445                 *
    446                  * @param WP &$this Current WordPress environment instance (passed by reference).
     446                 * @param WP $this Current WordPress environment instance (passed by reference).
    447447                 */
    448                 do_action_ref_array( 'send_headers', array( &$this ) );
     448                do_action( 'send_headers', $this );
    449449        }
    450450
    451451        /**
     
    617617                 *
    618618                 * @since 2.1.0
    619619                 *
    620                  * @param WP &$this Current WordPress environment instance (passed by reference).
     620                 * @param WP $this Current WordPress environment instance (passed by reference).
    621621                 */
    622                 do_action_ref_array( 'wp', array( &$this ) );
     622                do_action( 'wp', $this );
    623623        }
    624624
    625625}
  • src/wp-includes/class.wp-scripts.php

     
    4242                 *
    4343                 * @since 2.6.0
    4444                 *
    45                  * @param WP_Scripts &$this WP_Scripts instance, passed by reference.
     45                 * @param WP_Scripts $this WP_Scripts instance, passed by reference.
    4646                 */
    47                 do_action_ref_array( 'wp_default_scripts', array(&$this) );
     47                do_action( 'wp_default_scripts', $this );
    4848        }
    4949
    5050        /**
  • src/wp-includes/class.wp-styles.php

     
    3434                 *
    3535                 * @since 2.6.0
    3636                 *
    37                  * @param WP_Styles &$this WP_Styles instance, passed by reference.
     37                 * @param WP_Styles $this WP_Styles instance, passed by reference.
    3838                 */
    39                 do_action_ref_array( 'wp_default_styles', array(&$this) );
     39                do_action( 'wp_default_styles', $this );
    4040        }
    4141
    4242        /**
  • src/wp-includes/comment.php

     
    413413                 *
    414414                 * @since 3.1.0
    415415                 *
    416                  * @param WP_Comment_Query &$this Current instance of WP_Comment_Query, passed by reference.
     416                 * @param WP_Comment_Query $this Current instance of WP_Comment_Query, passed by reference.
    417417                 */
    418                 do_action_ref_array( 'pre_get_comments', array( &$this ) );
     418                do_action( 'pre_get_comments', $this );
    419419
    420420                // $args can be whatever, only use the args defined in defaults to compute the key
    421421                $key = md5( serialize( wp_array_slice_assoc( $this->query_vars, array_keys( $defaults ) ) )  );
  • src/wp-includes/query.php

     
    18121812                 *
    18131813                 * @since 1.5.0
    18141814                 *
    1815                  * @param WP_Query &$this The WP_Query instance (passed by reference).
     1815                 * @param WP_Query $this The WP_Query instance (passed by reference).
    18161816                 */
    1817                 do_action_ref_array( 'parse_query', array( &$this ) );
     1817                do_action( 'parse_query', $this );
    18181818        }
    18191819
    18201820        /**
     
    23722372                 *
    23732373                 * @since 2.0.0
    23742374                 *
    2375                  * @param WP_Query &$this The WP_Query instance (passed by reference).
     2375                 * @param WP_Query $this The WP_Query instance (passed by reference).
    23762376                 */
    2377                 do_action_ref_array( 'pre_get_posts', array( &$this ) );
     2377                do_action( 'pre_get_posts', $this );
    23782378
    23792379                // Shorthand.
    23802380                $q = &$this->query_vars;
     
    37003700                         *
    37013701                         * @since 2.0.0
    37023702                         *
    3703                          * @param WP_Query &$this The WP_Query instance (passed by reference).
     3703                         * @param WP_Query $this The WP_Query instance (passed by reference).
    37043704                         */
    3705                         do_action_ref_array( 'loop_start', array( &$this ) );
     3705                        do_action( 'loop_start', $this );
    37063706
    37073707                $post = $this->next_post();
    37083708                $this->setup_postdata( $post );
     
    37273727                         *
    37283728                         * @since 2.0.0
    37293729                         *
    3730                          * @param WP_Query &$this The WP_Query instance (passed by reference).
     3730                         * @param WP_Query $this The WP_Query instance (passed by reference).
    37313731                         */
    3732                         do_action_ref_array( 'loop_end', array( &$this ) );
     3732                        do_action( 'loop_end', $this );
    37333733                        // Do some cleaning up after the loop
    37343734                        $this->rewind_posts();
    37353735                }
     
    46004600                 * @since 2.8.0
    46014601                 * @since 4.1.0 Introduced `$this` parameter.
    46024602                 *
    4603                  * @param WP_Post  &$post The Post object (passed by reference).
    4604                  * @param WP_Query &$this The current Query object (passed by reference).
     4603                 * @param WP_Post  $post The Post object (passed by reference).
     4604                 * @param WP_Query $this The current Query object (passed by reference).
    46054605                 */
    4606                 do_action_ref_array( 'the_post', array( &$post, &$this ) );
     4606                do_action( 'the_post', $post, $this );
    46074607
    46084608                return true;
    46094609        }
  • src/wp-includes/rewrite.php

     
    17151715                 *
    17161716                 * @param WP_Rewrite $this Current WP_Rewrite instance, passed by reference.
    17171717                 */
    1718                 do_action_ref_array( 'generate_rewrite_rules', array( &$this ) );
     1718                do_action( 'generate_rewrite_rules', $this );
    17191719
    17201720                /**
    17211721                 * Filter the full set of generated rewrite rules.
  • src/wp-includes/user.php

     
    782782                 * @param WP_User_Query $this The current WP_User_Query instance,
    783783                 *                            passed by reference.
    784784                 */
    785                 do_action_ref_array( 'pre_user_query', array( &$this ) );
     785                do_action( 'pre_user_query', $this );
    786786        }
    787787
    788788        /**