Make WordPress Core

Changeset 18995


Ignore:
Timestamp:
10/18/2011 08:20:59 PM (15 years ago)
Author:
nacin
Message:

new does not require by reference.

Location:
trunk/wp-includes
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/cache.php

    r18682 r18995  
    138138 */
    139139function wp_cache_init() {
    140         $GLOBALS['wp_object_cache'] =& new WP_Object_Cache();
     140        $GLOBALS['wp_object_cache'] = new WP_Object_Cache();
    141141}
    142142
  • trunk/wp-includes/class-wp.php

    r18633 r18995  
    574574         */
    575575        function apply($subject, $matches) {
    576                 $oSelf =& new WP_MatchesMapRegex($subject, $matches);
     576                $oSelf = new WP_MatchesMapRegex($subject, $matches);
    577577                return $oSelf->output;
    578578        }
  • trunk/wp-includes/l10n.php

    r18899 r18995  
    484484        global $l10n;
    485485        if ( !isset( $l10n[$domain] ) ) {
    486                 $l10n[$domain] = &new NOOP_Translations;
     486                $l10n[$domain] = new NOOP_Translations;
    487487        }
    488488        return $l10n[$domain];
  • trunk/wp-includes/query.php

    r18846 r18995  
    9090function &query_posts($query) {
    9191        unset($GLOBALS['wp_query']);
    92         $GLOBALS['wp_query'] =& new WP_Query();
     92        $GLOBALS['wp_query'] = new WP_Query();
    9393        return $GLOBALS['wp_query']->query($query);
    9494}
    … …  
    106106function wp_reset_query() {
    107107        unset($GLOBALS['wp_query']);
    108         $GLOBALS['wp_query'] =& $GLOBALS['wp_the_query'];
     108        $GLOBALS['wp_query'] = $GLOBALS['wp_the_query'];
    109109        wp_reset_postdata();
    110110}
  • trunk/wp-includes/taxonomy.php

    r18932 r18995  
    11621162        foreach ( $taxonomies as $taxonomy ) {
    11631163                if ( ! taxonomy_exists($taxonomy) ) {
    1164                         $error = & new WP_Error('invalid_taxonomy', __('Invalid Taxonomy'));
     1164                        $error = new WP_Error('invalid_taxonomy', __('Invalid Taxonomy'));
    11651165                        return $error;
    11661166                }
  • trunk/wp-includes/theme.php

    r18886 r18995  
    17291729                return;
    17301730        require_once( ABSPATH . 'wp-admin/custom-background.php' );
    1731         $GLOBALS['custom_background'] =& new Custom_Background( $admin_header_callback, $admin_image_div_callback );
     1731        $GLOBALS['custom_background'] = new Custom_Background( $admin_header_callback, $admin_image_div_callback );
    17321732        add_action( 'admin_menu', array( &$GLOBALS['custom_background'], 'init' ) );
    17331733}
  • trunk/wp-includes/widgets.php

    r18821 r18995  
    322322
    323323        function register($widget_class) {
    324                 $this->widgets[$widget_class] = & new $widget_class();
     324                $this->widgets[$widget_class] = new $widget_class();
    325325        }
    326326
Note: See TracChangeset for help on using the changeset viewer.