[wp-trac] [WordPress Trac] #10763: Abstract function for authorization check in admin pages

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 9 22:03:58 UTC 2009


#10763: Abstract function for authorization check in admin pages
------------------------------+---------------------------------------------
 Reporter:  johnjosephbachir  |       Owner:  ryan                    
     Type:  enhancement       |      Status:  new                     
 Priority:  normal            |   Milestone:  Future Release          
Component:  Security          |     Version:  2.8.4                   
 Severity:  normal            |    Keywords:  needs-patch dev-feedback
------------------------------+---------------------------------------------
Changes (by dd32):

  * keywords:  => needs-patch dev-feedback
  * milestone:  2.8.5 => Future Release


Comment:

 Translation functions must be passed a string.

 {{{__($message); }}} will insert "$message" as a string into the
 translation file, Its not aware that t might be set to something else
 elsewhere.

 sprintf() also needs to be used to concencate, ie. {{{ sprintf(__('Sorry
 but you cannot %1$s this blog'), $message); }}} However combining multiple
 strings this way does not work in all languages, "Cannot manage options"
 may not always have the same structure within foriegn languages (In that,
 It cant just be plonked within another string without words being shuffled
 between them both)

 Future release pending Developer feedback and/or workable patch

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


More information about the wp-trac mailing list