[wp-trac] [WordPress Trac] #16830: url_to_postid() doesn't resolve attachments when rewrite rules are disabled
WordPress Trac
noreply at wordpress.org
Mon Dec 28 18:18:45 UTC 2015
#16830: url_to_postid() doesn't resolve attachments when rewrite rules are disabled
----------------------------------------+------------------------------
Reporter: Coolkevman | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Rewrite Rules | Version: 1.2
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+------------------------------
Changes (by swissspidy):
* keywords: has-patch reporter-feedback => has-patch needs-unit-tests
Comment:
I tend to prefer using `url_to_postid` and `attachment_url_to_postid`
separately (i.e. wontfix). [attachment:16830.diff] in general looks good
though, but needs unit tests.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16830#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list