diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index d042b94bd..6c0a7dda7 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -222,7 +222,7 @@ function _get_page_link( $id = false, $leavename = false, $sample = false ) { $pagestruct = $wp_rewrite->get_page_permastruct(); - if ( '' != $pagestruct && ( ( isset($post->post_status) && 'draft' != $post->post_status ) || $sample ) ) { + if ( '' != $pagestruct && ( ( isset($post->post_status) && 'draft' != $post->post_status && 'pending' != $post->post_status ) || $sample ) ) { $link = get_page_uri($id); $link = ( $leavename ) ? $pagestruct : str_replace('%pagename%', $link, $pagestruct); $link = trailingslashit(get_option('home')) . "$link";