mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-24 21:32:51 +02:00
Permalinks: Remove unnecesary temporary variable in get_permalink()
.
Props JPry, danimalbrown. Fixes #41981. Built from https://develop.svn.wordpress.org/trunk@42378 git-svn-id: http://core.svn.wordpress.org/trunk@42207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
823ec0859a
commit
7ec3bfe1ce
@ -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
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.0-alpha-42377';
|
$wp_version = '5.0-alpha-42378';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user