[wp-trac] [WordPress Trac] #25268: Re-enable processing of scheduled and private posts in _fix_attachment_links()

WordPress Trac noreply at wordpress.org
Wed Sep 11 09:07:26 UTC 2013


#25268: Re-enable processing of scheduled and private posts in
_fix_attachment_links()
----------------------------------------+--------------------
 Reporter:  jond3r                      |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  3.7
Component:  Media                       |     Version:  3.3.2
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |
----------------------------------------+--------------------

Comment (by jond3r):

 The reason for blacklisting draft-like statuses in the original patch was
 to mimic the check done in {{{get_permalink()}}}, which ultimately
 determines whether the attachment permalink is prettified. However, the
 whitelisting approach works equally well as long as there are no new
 publish-like statuses introduced.

 I'll try to come up with a few unit tests, but don't expect anything very
 soon.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25268#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list