[wp-trac] [WordPress Trac] #30910: future post permalink can be revealed when blog article requested by url like ...?p={post_id}

WordPress Trac noreply at wordpress.org
Mon Feb 2 16:49:25 UTC 2015


#30910: future post permalink can be revealed when blog article requested by url
like ...?p={post_id}
-------------------------------+---------------------------
 Reporter:  e.mazovetskiy      |       Owner:  boonebgorges
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  4.2
Component:  Posts, Post Types  |     Version:  trunk
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch          |     Focuses:
-------------------------------+---------------------------
Changes (by boonebgorges):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"31323"]:
 {{{
 #!CommitTicketReference repository="" revision="31323"
 In `get_sample_permalink()`, override 'future' status before generating
 permalink.

 In [31114], `get_permalink()` was modified to prevent pretty permalinks
 from
 being generated for posts with the 'future' post status. This
 inadvertently
 broke the pretty permalink preview for scheduled posts. The fix is to
 include
 the 'future' status in the list of statuses that `get_sample_permalink()`
 fakes
 as 'publish' before it fetches a permalink.

 Props DrewAPicture.
 Fixes #30910.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30910#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list