Correct the value of the `preview` query variable added by `get_preview_post_link()`.

See #24345
Props kitchin


git-svn-id: https://develop.svn.wordpress.org/trunk@34175 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2015-09-15 08:15:22 +00:00
parent c0c2a76778
commit 47a66713ae
1 changed files with 1 additions and 1 deletions

View File

@ -1182,7 +1182,7 @@ function get_preview_post_link( $post = null, $query_args = array(), $preview_li
$preview_link = get_permalink( $post );
}
$query_args['preview'] = true;
$query_args['preview'] = 'true';
$preview_link = add_query_arg( $query_args, $preview_link );
}