Don't use permalinks for pending posts. see #4446
git-svn-id: https://develop.svn.wordpress.org/trunk@5716 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
55845bb061
commit
6177fec7fa
@ -67,7 +67,7 @@ function get_permalink($id = 0) {
|
||||
|
||||
$permalink = get_option('permalink_structure');
|
||||
|
||||
if ( '' != $permalink && 'draft' != $post->post_status ) {
|
||||
if ( '' != $permalink && !in_array($post->post_status, array('draft', 'pending')) ) {
|
||||
$unixtime = strtotime($post->post_date);
|
||||
|
||||
$category = '';
|
||||
|
Loading…
Reference in New Issue
Block a user