mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Handle page hierarchy when showing the sample permalink. props duck_, fixes #12327.
git-svn-id: https://develop.svn.wordpress.org/trunk@14399 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1036,7 +1036,7 @@ function get_sample_permalink($id, $title = null, $name = null) {
|
||||
|
||||
// Handle page hierarchy
|
||||
if ( $ptype->hierarchical ) {
|
||||
$uri = get_page_uri($post->ID);
|
||||
$uri = get_page_uri($post);
|
||||
$uri = untrailingslashit($uri);
|
||||
$uri = strrev( stristr( strrev( $uri ), '/' ) );
|
||||
$uri = untrailingslashit($uri);
|
||||
|
||||
Reference in New Issue
Block a user