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:
parent
c0c2a76778
commit
47a66713ae
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue