mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-26 23:44:31 +00:00
In get_permalink(), don't resolve to pretty permalink if post has 'future' status.
We already do this for other non-public statuses, to prevent leaking non-public information about unpublished posts. Props e.mazovetskiy, CalEvans. Fixes #30910. git-svn-id: https://develop.svn.wordpress.org/trunk@31114 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -195,8 +195,7 @@ class Tests_Query_PostStatus extends WP_UnitTestCase {
|
||||
$q = new WP_Query( array(
|
||||
'posts_per_page' => -1,
|
||||
) );
|
||||
global $wpdb;
|
||||
//print_r( $wpdb->get_results( "SELECT * FROM $wpdb->posts" ) );
|
||||
|
||||
$this->assertContains( self::$author_privatefoo_post, wp_list_pluck( $q->posts, 'ID' ) );
|
||||
$this->assertContains( self::$editor_privatefoo_post, wp_list_pluck( $q->posts, 'ID' ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user