WordPress.org

Make WordPress Core

Changeset 9599


Ignore:
Timestamp:
11/10/08 21:57:26 (6 years ago)
Author:
westi
Message:

Improve code style.

File:
1 edited

Legend:

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

    r9518 r9599  
    6565        if ( $category->parent == $category_id ) // recursive recursion 
    6666            $category->parent = 0; 
    67  
    68         if ( $parent = $category->parent ) 
    69             $category_nicename = get_category_parents( $parent, false, '/', true ) . $category_nicename; 
     67        elseif ($category->parent != 0 ) 
     68            $category_nicename = get_category_parents( $category->parent, false, '/', true ) . $category_nicename; 
    7069 
    7170        $catlink = str_replace( '%category%', $category_nicename, $catlink ); 
Note: See TracChangeset for help on using the changeset viewer.