[wp-trac] Re: [WordPress Trac] #9621: Clean up filter links for admin pages

WordPress Trac wp-trac at lists.automattic.com
Tue May 12 09:54:11 GMT 2009


#9621: Clean up filter links for admin pages
----------------------------+-----------------------------------------------
 Reporter:  scribu          |       Owner:  scribu                 
     Type:  enhancement     |      Status:  new                    
 Priority:  normal          |   Milestone:  2.8                    
Component:  Administration  |     Version:  2.7.1                  
 Severity:  normal          |    Keywords:  has-patch tested commit
----------------------------+-----------------------------------------------

Comment(by scribu):

 Replying to [comment:4 azaozz]:
 > That's a good idea but renaming the filter `post_stati` (which is
 available in 2.7) will break all plugins that are using it.

 I've added that filter back and it should be backwards compatible.

 > The links for each page are a bit different and it seems this patch
 would make them harder to translate in some cases.

 They all have (or should have) the same markup, even if the numbers are
 calculated differently.

 These numbers are already translated when they are passed to the parsing
 function (wp_filter_links). This is better because you don't end up with
 markup in the l10n strings.

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


More information about the wp-trac mailing list