_doing_it_wrong [ WordPress Function ]
| Access: |
|
| Parameters: |
|
| Uses: | |
| Defined at: |
|
Marks something as being incorrectly called.
There is a hook doing_it_wrong_run that will be called that can be used to get the backtrace up to what file and function called the deprecated function.
The current behavior is to trigger a user error if WP_DEBUG is true.
Source
<?php
function _doing_it_wrong( $function, $message, $version ) {
do_action( 'doing_it_wrong_run', $function, $message, $version );
// Allow plugin to filter the output error trigger
if ( WP_DEBUG && apply_filters( 'doing_it_wrong_trigger_error', true ) ) {
$version = is_null( $version ) ? '' : sprintf( __( '(This message was added in version %s.)' ), $version );
$message .= ' ' . __( 'Please see <a href="http://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information.' );
trigger_error( sprintf( __( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s' ), $function, $message, $version ) );
}
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- #15824 (Introduce _doing_it_wrong to mark places where plugins ...
We are starting to mark incorrect usage of functions with _deprecated_function where as we should have a specific way of marking these so the message is ...
core.trac.wordpress.org - PHPXRef 0.7 : WordPress : Function Reference: _doing_it_wrong()
Function and Method Cross Reference. _doing_it_wrong(). Defined at: /wp- includes/functions.php -> line 2795. Referenced 44 times: ...
phpxref.ftwr.co.uk - Drake – Doing It Wrong Lyrics | Rap Genius
When a good thing goes bad it's not the end of the world / It's just the end of a world that you had with one girl / And she's the reason it happened, but she's ...
rapgenius.com - _doing_it_wrong (WordPress Function) - WPSeek.com
WordPress lookup for _doing_it_wrong, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com