[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
Fri Jan 9 09:45:02 UTC 2015


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

Comment (by e.mazovetskiy):

 I did some additional tests. So, get_permalink() works for native post
 type and get_post_permalink() works for custom post type. So both
 functions should be patched.

 Replying to [comment:3 CalEvans]:
 > Replying to [comment:2 SergeyBiryukov]:
 >
 > I do not believe - but I would be happy to be corrected - that the patch
 supplied will solve the problem.
 >
 > I was able to recreate the problem, but not yet in a unit test. I can
 recreate it with wget. I believe the problem lies not in
 get_post_permalink() but in get_permalink().
 >
 > Again, I could be wrong. I'm posting to get an opinion before I attempt
 to solve the wrong problem. :)
 >
 > Cheers1
 > =C=

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


More information about the wp-trac mailing list