Changeset 22118
- Timestamp:
- 10/04/2012 08:00:16 PM (12 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/cache.php
r22111 r22118 636 636 * already calls __destruct() 637 637 */ 638 register_shutdown_function( array( &$this, '__destruct' ) );638 register_shutdown_function( array( $this, '__destruct' ) ); 639 639 } 640 640 -
trunk/wp-includes/capabilities.php
r22060 r22118 726 726 //Filter out caps that are not role names and assign to $this->roles 727 727 if ( is_array( $this->caps ) ) 728 $this->roles = array_filter( array_keys( $this->caps ), array( &$wp_roles, 'is_role' ) );728 $this->roles = array_filter( array_keys( $this->caps ), array( $wp_roles, 'is_role' ) ); 729 729 730 730 //Build $allcaps from role caps, overlay user's $caps … … 1332 1332 $args = array_merge( array( $capability ), $args ); 1333 1333 1334 return call_user_func_array( array( &$author, 'has_cap' ), $args );1334 return call_user_func_array( array( $author, 'has_cap' ), $args ); 1335 1335 } 1336 1336 … … 1354 1354 $args = array_merge( array( $capability ), $args ); 1355 1355 1356 return call_user_func_array( array( &$user, 'has_cap' ), $args );1356 return call_user_func_array( array( $user, 'has_cap' ), $args ); 1357 1357 } 1358 1358 -
trunk/wp-includes/class-http.php
r22055 r22118 1110 1110 1111 1111 if ( true === $r['blocking'] ) 1112 curl_setopt( $handle, CURLOPT_HEADERFUNCTION, array( &$this, 'stream_headers' ) );1112 curl_setopt( $handle, CURLOPT_HEADERFUNCTION, array( $this, 'stream_headers' ) ); 1113 1113 1114 1114 curl_setopt( $handle, CURLOPT_HEADER, false ); -
trunk/wp-includes/class-oembed.php
r22003 r22118 54 54 55 55 // Fix any embeds that contain new lines in the middle of the HTML which breaks wpautop(). 56 add_filter( 'oembed_dataparse', array( &$this, '_strip_newlines'), 10, 3 );56 add_filter( 'oembed_dataparse', array($this, '_strip_newlines'), 10, 3 ); 57 57 } 58 58 -
trunk/wp-includes/class-wp-walker.php
r19712 r22118 127 127 $args[0]['has_children'] = ! empty( $children_elements[$element->$id_field] ); 128 128 $cb_args = array_merge( array(&$output, $element, $depth), $args); 129 call_user_func_array(array( &$this, 'start_el'), $cb_args);129 call_user_func_array(array($this, 'start_el'), $cb_args); 130 130 131 131 $id = $element->$id_field; … … 140 140 //start the child delimiter 141 141 $cb_args = array_merge( array(&$output, $depth), $args); 142 call_user_func_array(array( &$this, 'start_lvl'), $cb_args);142 call_user_func_array(array($this, 'start_lvl'), $cb_args); 143 143 } 144 144 $this->display_element( $child, $children_elements, $max_depth, $depth + 1, $args, $output ); … … 150 150 //end the child delimiter 151 151 $cb_args = array_merge( array(&$output, $depth), $args); 152 call_user_func_array(array( &$this, 'end_lvl'), $cb_args);152 call_user_func_array(array($this, 'end_lvl'), $cb_args); 153 153 } 154 154 155 155 //end this element 156 156 $cb_args = array_merge( array(&$output, $element, $depth), $args); 157 call_user_func_array(array( &$this, 'end_el'), $cb_args);157 call_user_func_array(array($this, 'end_el'), $cb_args); 158 158 } 159 159 -
trunk/wp-includes/class-wp.php
r21818 r22118 607 607 */ 608 608 function _map() { 609 $callback = array( &$this, 'callback');609 $callback = array($this, 'callback'); 610 610 return preg_replace_callback($this->_pattern, $callback, $this->_subject); 611 611 } -
trunk/wp-includes/default-widgets.php
r21978 r22118 537 537 $this->alt_option_name = 'widget_recent_entries'; 538 538 539 add_action( 'save_post', array( &$this, 'flush_widget_cache') );540 add_action( 'deleted_post', array( &$this, 'flush_widget_cache') );541 add_action( 'switch_theme', array( &$this, 'flush_widget_cache') );539 add_action( 'save_post', array($this, 'flush_widget_cache') ); 540 add_action( 'deleted_post', array($this, 'flush_widget_cache') ); 541 add_action( 'switch_theme', array($this, 'flush_widget_cache') ); 542 542 } 543 543 … … 638 638 639 639 if ( is_active_widget(false, false, $this->id_base) ) 640 add_action( 'wp_head', array( &$this, 'recent_comments_style') );641 642 add_action( 'comment_post', array( &$this, 'flush_widget_cache') );643 add_action( 'transition_comment_status', array( &$this, 'flush_widget_cache') );640 add_action( 'wp_head', array($this, 'recent_comments_style') ); 641 642 add_action( 'comment_post', array($this, 'flush_widget_cache') ); 643 add_action( 'transition_comment_status', array($this, 'flush_widget_cache') ); 644 644 } 645 645 -
trunk/wp-includes/nav-menu-template.php
r21868 r22118 476 476 $args = array( $items, $depth, $r ); 477 477 478 return call_user_func_array( array( &$walker, 'walk'), $args );478 return call_user_func_array( array($walker, 'walk'), $args ); 479 479 } 480 480 -
trunk/wp-includes/post-template.php
r22107 r22118 938 938 939 939 $args = array($pages, $depth, $r, $current_page); 940 return call_user_func_array(array( &$walker, 'walk'), $args);940 return call_user_func_array(array($walker, 'walk'), $args); 941 941 } 942 942 … … 955 955 $walker = $args[2]['walker']; 956 956 957 return call_user_func_array(array( &$walker, 'walk'), $args);957 return call_user_func_array(array($walker, 'walk'), $args); 958 958 } 959 959 -
trunk/wp-includes/taxonomy.php
r22114 r22118 1411 1411 $children = _get_term_hierarchy($taxonomies[0]); 1412 1412 if ( ! empty($children) ) 1413 $terms = &_get_term_children($child_of, $terms, $taxonomies[0]);1413 $terms = _get_term_children($child_of, $terms, $taxonomies[0]); 1414 1414 } 1415 1415 -
trunk/wp-includes/widgets.php
r19684 r22118 153 153 154 154 function _get_display_callback() { 155 return array( &$this, 'display_callback');155 return array($this, 'display_callback'); 156 156 } 157 157 158 158 function _get_update_callback() { 159 return array( &$this, 'update_callback');159 return array($this, 'update_callback'); 160 160 } 161 161 162 162 function _get_form_callback() { 163 return array( &$this, 'form_callback');163 return array($this, 'form_callback'); 164 164 } 165 165 … … 318 318 319 319 function WP_Widget_Factory() { 320 add_action( 'widgets_init', array( &$this, '_register_widgets' ), 100 );320 add_action( 'widgets_init', array( $this, '_register_widgets' ), 100 ); 321 321 } 322 322 -
trunk/wp-includes/wp-db.php
r21807 r22118 535 535 */ 536 536 function __construct( $dbuser, $dbpassword, $dbname, $dbhost ) { 537 register_shutdown_function( array( &$this, '__destruct' ) );537 register_shutdown_function( array( $this, '__destruct' ) ); 538 538 539 539 if ( WP_DEBUG ) … … 1001 1001 $query = str_replace( '%f' , '%F', $query ); // Force floats to be locale unaware 1002 1002 $query = preg_replace( '|(?<!%)%s|', "'%s'", $query ); // quote the strings, avoiding escaped strings like %%s 1003 array_walk( $args, array( &$this, 'escape_by_ref' ) );1003 array_walk( $args, array( $this, 'escape_by_ref' ) ); 1004 1004 return @vsprintf( $query, $args ); 1005 1005 } -
trunk/wp-includes/wp-diff.php
r19712 r22118 423 423 424 424 // L1-norm of difference vector. 425 $difference = array_sum( array_map( array( &$this, 'difference'), $chars1, $chars2 ) );425 $difference = array_sum( array_map( array($this, 'difference'), $chars1, $chars2 ) ); 426 426 427 427 // $string1 has zero length? Odd. Give huge penalty by not dividing.
Note: See TracChangeset
for help on using the changeset viewer.