mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 07:37:44 +02:00
Improve code style.
git-svn-id: http://svn.automattic.com/wordpress/trunk@9599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
eb98d60d03
commit
9ebad4866c
@ -64,9 +64,8 @@ function get_category_link( $category_id ) {
|
|||||||
|
|
||||||
if ( $category->parent == $category_id ) // recursive recursion
|
if ( $category->parent == $category_id ) // recursive recursion
|
||||||
$category->parent = 0;
|
$category->parent = 0;
|
||||||
|
elseif ($category->parent != 0 )
|
||||||
if ( $parent = $category->parent )
|
$category_nicename = get_category_parents( $category->parent, false, '/', true ) . $category_nicename;
|
||||||
$category_nicename = get_category_parents( $parent, false, '/', true ) . $category_nicename;
|
|
||||||
|
|
||||||
$catlink = str_replace( '%category%', $category_nicename, $catlink );
|
$catlink = str_replace( '%category%', $category_nicename, $catlink );
|
||||||
$catlink = get_option( 'home' ) . user_trailingslashit( $catlink, 'category' );
|
$catlink = get_option( 'home' ) . user_trailingslashit( $catlink, 'category' );
|
||||||
|
Loading…
Reference in New Issue
Block a user