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

WordPress Trac noreply at wordpress.org
Tue Sep 10 21:01:41 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:  Awaiting Review
Component:  Media         |     Version:  3.3.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by azaozz):

 25268.diff looks good. It will be really really helpful to have few
 testcases for this.

 In short: `_fix_attachment_links()` has to run after the post's permalink
 is finalized. This happens when the post is either published or scheduled
 or set as private. Thinking it would be better to "whitelist" the
 `publish` or equivalent post_status rather than "blacklist" `draft`,
 `auto-draft` and `pending`.

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


More information about the wp-trac mailing list