Apply editable_slug filter to parent page slugs in get_sample_permalink(). Props solarissmoke, ramiy. fixes #16999
git-svn-id: http://svn.automattic.com/wordpress/trunk@18105 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a7189cbaa9
commit
a0c3f4ce25
|
@ -1110,6 +1110,7 @@ function get_sample_permalink($id, $title = null, $name = null) {
|
||||||
$uri = untrailingslashit($uri);
|
$uri = untrailingslashit($uri);
|
||||||
$uri = strrev( stristr( strrev( $uri ), '/' ) );
|
$uri = strrev( stristr( strrev( $uri ), '/' ) );
|
||||||
$uri = untrailingslashit($uri);
|
$uri = untrailingslashit($uri);
|
||||||
|
$uri = apply_filters( 'editable_slug', $uri );
|
||||||
if ( !empty($uri) )
|
if ( !empty($uri) )
|
||||||
$uri .= '/';
|
$uri .= '/';
|
||||||
$permalink = str_replace('%pagename%', "{$uri}%pagename%", $permalink);
|
$permalink = str_replace('%pagename%', "{$uri}%pagename%", $permalink);
|
||||||
|
|
Loading…
Reference in New Issue