Changeset 18995
- Timestamp:
- 10/18/2011 08:20:59 PM (13 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/cache.php
r18682 r18995 138 138 */ 139 139 function wp_cache_init() { 140 $GLOBALS['wp_object_cache'] = &new WP_Object_Cache();140 $GLOBALS['wp_object_cache'] = new WP_Object_Cache(); 141 141 } 142 142 -
trunk/wp-includes/class-wp.php
r18633 r18995 574 574 */ 575 575 function apply($subject, $matches) { 576 $oSelf = &new WP_MatchesMapRegex($subject, $matches);576 $oSelf = new WP_MatchesMapRegex($subject, $matches); 577 577 return $oSelf->output; 578 578 } -
trunk/wp-includes/l10n.php
r18899 r18995 484 484 global $l10n; 485 485 if ( !isset( $l10n[$domain] ) ) { 486 $l10n[$domain] = &new NOOP_Translations;486 $l10n[$domain] = new NOOP_Translations; 487 487 } 488 488 return $l10n[$domain]; -
trunk/wp-includes/query.php
r18846 r18995 90 90 function &query_posts($query) { 91 91 unset($GLOBALS['wp_query']); 92 $GLOBALS['wp_query'] = &new WP_Query();92 $GLOBALS['wp_query'] = new WP_Query(); 93 93 return $GLOBALS['wp_query']->query($query); 94 94 } … … 106 106 function wp_reset_query() { 107 107 unset($GLOBALS['wp_query']); 108 $GLOBALS['wp_query'] = &$GLOBALS['wp_the_query'];108 $GLOBALS['wp_query'] = $GLOBALS['wp_the_query']; 109 109 wp_reset_postdata(); 110 110 } -
trunk/wp-includes/taxonomy.php
r18932 r18995 1162 1162 foreach ( $taxonomies as $taxonomy ) { 1163 1163 if ( ! taxonomy_exists($taxonomy) ) { 1164 $error = &new WP_Error('invalid_taxonomy', __('Invalid Taxonomy'));1164 $error = new WP_Error('invalid_taxonomy', __('Invalid Taxonomy')); 1165 1165 return $error; 1166 1166 } -
trunk/wp-includes/theme.php
r18886 r18995 1729 1729 return; 1730 1730 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 ); 1732 1732 add_action( 'admin_menu', array( &$GLOBALS['custom_background'], 'init' ) ); 1733 1733 } -
trunk/wp-includes/widgets.php
r18821 r18995 322 322 323 323 function register($widget_class) { 324 $this->widgets[$widget_class] = &new $widget_class();324 $this->widgets[$widget_class] = new $widget_class(); 325 325 } 326 326
Note: See TracChangeset
for help on using the changeset viewer.