[wp-trac] [WordPress Trac] #11386: New _deprecated_argument() function

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 24 12:48:44 UTC 2009


#11386: New _deprecated_argument() function
-------------------------+--------------------------------------------------
 Reporter:  nacin        |       Owner:  westi   
     Type:  enhancement  |      Status:  accepted
 Priority:  normal       |   Milestone:  3.0     
Component:  Inline Docs  |     Version:          
 Severity:  normal       |    Keywords:  commit  
-------------------------+--------------------------------------------------
Changes (by sirzooro):

 * cc: sirzooro (added)


Comment:

 `_deprecated_argument()` function needs update - you should check if
 WP_DEBUG is defined first. Without this you will get PHP notice that
 WP_DEBUG is not defined.

 {{{
 if( defined( 'WP_DEBUG' ) && WP_DEBUG && apply_filters(
 'deprecated_argument_trigger_error', true ) ) {
 }}}

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


More information about the wp-trac mailing list