Don't use permalinks for pending posts. see #4446
git-svn-id: http://svn.automattic.com/wordpress/trunk@5716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
404e50bfb3
commit
64d3a54b85
|
@ -67,7 +67,7 @@ function get_permalink($id = 0) {
|
||||||
|
|
||||||
$permalink = get_option('permalink_structure');
|
$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);
|
$unixtime = strtotime($post->post_date);
|
||||||
|
|
||||||
$category = '';
|
$category = '';
|
||||||
|
|
Loading…
Reference in New Issue