Database: Replace incorrect use of `E_USER_NOTICE` in `wpdb::_real_escape()` with the version number where the message was added.
Props andizer. Fixes #36403. Built from https://develop.svn.wordpress.org/trunk@38133 git-svn-id: http://core.svn.wordpress.org/trunk@38074 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
db523ad623
commit
2cbe10e79c
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.6-beta4-38132';
|
$wp_version = '4.6-beta4-38133';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
|
@ -1162,9 +1162,9 @@ class wpdb {
|
||||||
$class = get_class( $this );
|
$class = get_class( $this );
|
||||||
if ( function_exists( '__' ) ) {
|
if ( function_exists( '__' ) ) {
|
||||||
/* translators: %s: database access abstraction class, usually wpdb or a class extending wpdb */
|
/* translators: %s: database access abstraction class, usually wpdb or a class extending wpdb */
|
||||||
_doing_it_wrong( $class, sprintf( __( '%s must set a database connection for use with escaping.' ), $class ), E_USER_NOTICE );
|
_doing_it_wrong( $class, sprintf( __( '%s must set a database connection for use with escaping.' ), $class ), '3.6.0' );
|
||||||
} else {
|
} else {
|
||||||
_doing_it_wrong( $class, sprintf( '%s must set a database connection for use with escaping.', $class ), E_USER_NOTICE );
|
_doing_it_wrong( $class, sprintf( '%s must set a database connection for use with escaping.', $class ), '3.6.0' );
|
||||||
}
|
}
|
||||||
return addslashes( $string );
|
return addslashes( $string );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue