mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 05:38:07 +01:00
Make sure permalinks for draft pages use query string style since the slug might not be set yet.
git-svn-id: https://develop.svn.wordpress.org/trunk@3708 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
96db8df95e
commit
e3e8dfeef4
@ -92,7 +92,7 @@ function get_page_link($id = false) {
|
||||
|
||||
$pagestruct = $wp_rewrite->get_page_permastruct();
|
||||
|
||||
if ( '' != $pagestruct ) {
|
||||
if ( '' != $pagestruct && 'draft' != $post->post_status ) {
|
||||
$link = get_page_uri($id);
|
||||
$link = str_replace('%pagename%', $link, $pagestruct);
|
||||
$link = get_settings('home') . "/$link/";
|
||||
|
Loading…
x
Reference in New Issue
Block a user