Make WordPress Core

Changeset 22117


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

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ajax-actions.php

    r22021 r22117  
    327327
    328328        while ( $parent->parent ) { // get the top parent
    329             $parent = &get_term( $parent->parent, $taxonomy->name );
     329            $parent = get_term( $parent->parent, $taxonomy->name );
    330330            if ( is_wp_error( $parent ) )
    331331                break;
  • trunk/wp-includes/category-template.php

    r21981 r22117  
    4242function get_category_parents( $id, $link = false, $separator = '/', $nicename = false, $visited = array() ) {
    4343    $chain = '';
    44     $parent = &get_category( $id );
     44    $parent = get_category( $id );
    4545    if ( is_wp_error( $parent ) )
    4646        return $parent;
     
    136136function get_the_category_by_ID( $cat_ID ) {
    137137    $cat_ID = (int) $cat_ID;
    138     $category = &get_category( $cat_ID );
     138    $category = get_category( $cat_ID );
    139139    if ( is_wp_error( $category ) )
    140140        return $category;
Note: See TracChangeset for help on using the changeset viewer.