Translate some previously untranslated _doing_it_wrong() messages.
props georgestephanis. fixes #25614. Built from https://develop.svn.wordpress.org/trunk@29840 git-svn-id: http://core.svn.wordpress.org/trunk@29604 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1042,7 +1042,11 @@ class wpdb {
|
||||
}
|
||||
|
||||
$class = get_class( $this );
|
||||
_doing_it_wrong( $class, "$class must set a database connection for use with escaping.", E_USER_NOTICE );
|
||||
if ( function_exists( '__' ) ) {
|
||||
_doing_it_wrong( $class, sprintf( __( '%s must set a database connection for use with escaping.' ), $class ), E_USER_NOTICE );
|
||||
} else {
|
||||
_doing_it_wrong( $class, sprintf( '%s must set a database connection for use with escaping.', $class ), E_USER_NOTICE );
|
||||
}
|
||||
return addslashes( $string );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user