Changeset 18752 for trunk/wp-includes/functions.php
- Timestamp:
- 09/22/2011 09:15:45 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r18751 r18752 3523 3523 */ 3524 3524 function _doing_it_wrong( $function, $message, $version ) { 3525 global $_admin_error_messages;3526 3525 3527 3526 do_action( 'doing_it_wrong_run', $function, $message, $version ); … … 3530 3529 if ( WP_DEBUG && apply_filters( 'doing_it_wrong_trigger_error', true ) ) { 3531 3530 $version = is_null( $version ) ? '' : sprintf( __( '(This message was added in version %s.)' ), $version ); 3532 $error = sprintf( __( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s. For more information please install a debugging plugin like <a href="http://wordpress.org/extend/plugins/debug-bar/">Debug Bar</a> or <a href="http://wordpress.org/extend/plugins/log-deprecated-notices/">Log Deprecated Notices</a>.' ), $function, $message, $version ); 3533 3534 if ( WP_DEBUG_DISPLAY ) { 3535 (array) $_admin_error_messages[] = $error; 3536 } else { 3537 trigger_error( $error ); 3538 } 3531 trigger_error( sprintf( __( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s' ), $function, $message, $version ) ); 3539 3532 } 3540 3533 }
Note: See TracChangeset
for help on using the changeset viewer.