Permalinks: Remove unnecesary temporary variable in get_permalink()
.
Props JPry, danimalbrown. Fixes #41981. git-svn-id: https://develop.svn.wordpress.org/trunk@42378 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
acb4856b65
commit
72b74509f3
@ -191,8 +191,8 @@ function get_permalink( $post = 0, $leavename = false ) {
|
|||||||
|
|
||||||
$category_object = get_term( $category_object, 'category' );
|
$category_object = get_term( $category_object, 'category' );
|
||||||
$category = $category_object->slug;
|
$category = $category_object->slug;
|
||||||
if ( $parent = $category_object->parent ) {
|
if ( $category_object->parent ) {
|
||||||
$category = get_category_parents( $parent, false, '/', true ) . $category;
|
$category = get_category_parents( $category_object->parent, false, '/', true ) . $category;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// show default category in permalinks, without
|
// show default category in permalinks, without
|
||||||
|
Loading…
Reference in New Issue
Block a user