[wp-trac] [WordPress Trac] #16830: url_to_postid() doesn't resolve attachments when rewrite rules are disabled

WordPress Trac noreply at wordpress.org
Sat Sep 19 23:59:33 UTC 2015


#16830: url_to_postid() doesn't resolve attachments when rewrite rules are disabled
-----------------------------------------+------------------------------
 Reporter:  Coolkevman                   |       Owner:
     Type:  feature request              |      Status:  reopened
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Rewrite Rules                |     Version:  1.2
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:
-----------------------------------------+------------------------------
Changes (by wonderboymusic):

 * keywords:  has-patch dev-feedback => has-patch reporter-feedback


Comment:

 If you want `url_to_postid()` to fall back to attachments?
 [attachment:16830.diff 16830.diff]

 If you just want the ability to parse attachment URLs and retrieve a post
 ID? Since [29029]

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


More information about the wp-trac mailing list