[wp-trac] [WordPress Trac] #6906: syntax error in _deprecated_function() and _deprecated_file()

WordPress Trac wp-trac at lists.automattic.com
Sat May 3 23:39:20 GMT 2008


#6906: syntax error in _deprecated_function() and _deprecated_file()
----------------------------+-----------------------------------------------
 Reporter:  JonathanRogers  |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:  2.7      
Component:  General         |     Version:  2.5.1    
 Severity:  minor           |    Keywords:           
----------------------------+-----------------------------------------------
 The functions _deprecated_function() and _deprecated_file() in wp-
 includes/functions.php contain lines like:
 {{{
 trigger_error( printf( __("%1$s is <strong>deprecated</strong> since
 version %2$s! Use %3$s instead."), $function, $version, $replacement ) );
 }}}

 The printf format strings seem to be bogus and cause PHP to complain when
 I put "define('WP_DEBUG',true);" in my wp-config.php:
 {{{
 [03-May-2008 17:35:17] PHP Notice:  Undefined variable: s in
 /wordpress_root/wp-includes/functions.php on line 1708
 }}}

 I also see "is deprecated since version ! Use instead." inserted at the
 top of some pages. I'm quite sure those should be calls to sprintf and
 should contain correct format strings.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6906>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list