[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
Fri Mar 26 23:49:23 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 commit
-------------------------+--------------------------------------------------

Comment(by dd32):

 The attached patch requires that the _edit_link be set to the absolute
 URL. IMO, thats not going to be a flexible method.

 There is nothing preventing you from filtering the link, Which is exactly
 what i do, Filtering the link allows for a much higher flexibility of the
 link created.

 I for example, am using /wordpress/<post-name-
 here>/edit/<edit_revision_here>/ to handle my post edits, that would be
 next to impossible with the proposed solution as it can only insert the
 ID, I'd still have to filter it.

 If the default admin link isnt powerful enough, filter it, there is no way
 you can create a complex link using that function for every use-case, so
 to me, it doesnt make sense here.

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


More information about the wp-trac mailing list