WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/09/2015 04:39:56 PM (6 years ago)
Author:
boonebgorges
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/query/postStatus.php

    r31047 r31114  
    196196            'posts_per_page' => -1,
    197197        ) );
    198 global $wpdb;
    199 //print_r( $wpdb->get_results( "SELECT * FROM $wpdb->posts" ) );
     198
    200199        $this->assertContains( self::$author_privatefoo_post, wp_list_pluck( $q->posts, 'ID' ) );
    201200        $this->assertContains( self::$editor_privatefoo_post, wp_list_pluck( $q->posts, 'ID' ) );
Note: See TracChangeset for help on using the changeset viewer.