Make WordPress Core

Changeset 22114


Ignore:
Timestamp:
10/04/2012 06:21:47 PM (12 years ago)
Author:
ryan
Message:

Avoid 'Only variables should be assigned by reference' warning. Props wonderboymusic. see #21865

Location:
trunk/wp-includes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r21735 r22114  
    895895
    896896    if ( $separate_comments ) {
    897         $wp_query->comments_by_type = &separate_comments($comments);
     897        $wp_query->comments_by_type = separate_comments($comments);
    898898        $comments_by_type = &$wp_query->comments_by_type;
    899899    }
  • trunk/wp-includes/link-template.php

    r22095 r22114  
    979979 */
    980980function get_edit_comment_link( $comment_id = 0 ) {
    981     $comment = &get_comment( $comment_id );
     981    $comment = get_comment( $comment_id );
    982982
    983983    if ( !current_user_can( 'edit_comment', $comment->comment_ID ) )
  • trunk/wp-includes/post.php

    r22060 r22114  
    36543654
    36553655    if ( $child_of || $hierarchical )
    3656         $pages = & get_page_children($child_of, $pages);
     3656        $pages = get_page_children($child_of, $pages);
    36573657
    36583658    if ( !empty($exclude_tree) ) {
  • trunk/wp-includes/taxonomy.php

    r22109 r22114  
    29892989    if ( !is_object($term) ) {
    29902990        if ( is_int($term) ) {
    2991             $term = &get_term($term, $taxonomy);
     2991            $term = get_term($term, $taxonomy);
    29922992        } else {
    2993             $term = &get_term_by('slug', $term, $taxonomy);
     2993            $term = get_term_by('slug', $term, $taxonomy);
    29942994        }
    29952995    }
Note: See TracChangeset for help on using the changeset viewer.