[wp-trac] [WordPress Trac] #12721: Allow post_type's _edit_link to be outside of the admin.

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 27 00:55:47 UTC 2010


#12721: Allow post_type's _edit_link to be outside of the admin.
-------------------------+--------------------------------------------------
 Reporter:  prettyboymp  |       Owner:                  
     Type:  enhancement  |      Status:  new             
 Priority:  normal       |   Milestone:  3.0             
Component:  General      |     Version:                  
 Severity:  normal       |    Keywords:  has-patch tested
-------------------------+--------------------------------------------------
Changes (by prettyboymp):

  * keywords:  has-patch tested commit => has-patch tested


Comment:

 The absolute path is based off of the assumption that you would use
 site_url() to create the link when you pass it into the register_post_type
 method, so it is no less flexible than the current handling which is based
 on the path of wp-admin.

 After some thought, to cut down on the slight performance hit of the regex
 running for each get_edit_post_link, I think the patch should be changed
 to add the admin_url or keep the absolute url during post_type
 registration instead.  I'll submit a patch as soon as I know the entire
 ticket isn't getting shot down first.

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


More information about the wp-trac mailing list