Make WordPress Core

Changeset 22116


Ignore:
Timestamp:
10/04/2012 06:30:57 PM (13 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

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

    r21792 r22116  
    186186function get_cat_name( $cat_id ) {
    187187    $cat_id = (int) $cat_id;
    188     $category = &get_category( $cat_id );
     188    $category = get_category( $cat_id );
    189189    if ( ! $category || is_wp_error( $category ) )
    190190        return '';
Note: See TracChangeset for help on using the changeset viewer.