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

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 17 14:30:00 UTC 2011


#16830: url_to_postid() doesn't resolve attachments when rewrite rules are disabled
---------------------------+------------------------------
 Reporter:  Coolkevman     |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Rewrite Rules  |     Version:  3.1
 Severity:  normal         |  Resolution:
 Keywords:                 |
---------------------------+------------------------------

Comment (by Coolkevman):

 Another clue of serious inconsistency:
 [http://codex.wordpress.org/Function_Reference/get_attachment_link
 get_attachment_link()] return what I called the "attachment URL" (= a
 pretty permalink URL). Yet it is named using the "link" keyword. These
 "links" are currently well supported by the {{{url_to_postid()}}} method.
 So why the latter is not named {{{link_to_postid()}}} ? :)

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


More information about the wp-trac mailing list