diff --git a/src/wp-includes/functions.wp-styles.php b/src/wp-includes/functions.wp-styles.php index a582f5c872..83db482cc0 100644 --- a/src/wp-includes/functions.wp-styles.php +++ b/src/wp-includes/functions.wp-styles.php @@ -75,7 +75,7 @@ function wp_add_inline_style( $handle, $data ) { } if ( false !== stripos( $data, '' ) ) { - _doing_it_wrong( __FUNCTION__, 'Do not pass style tags to wp_add_inline_style().', '3.7' ); + _doing_it_wrong( __FUNCTION__, __( 'Do not pass style tags to wp_add_inline_style().' ), '3.7' ); $data = trim( preg_replace( '#]*>(.*)#is', '$1', $data ) ); } diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php index 85119eda1e..5ef8aed7ed 100644 --- a/src/wp-includes/theme.php +++ b/src/wp-includes/theme.php @@ -1482,7 +1482,7 @@ function add_theme_support( $feature ) { // Build an array of types for back-compat. $args = array( 0 => array( 'comment-list', 'comment-form', 'search-form' ) ); } elseif ( ! is_array( $args[0] ) ) { - _doing_it_wrong( "add_theme_support( 'html5' )", 'You need to pass an array of types.', '3.6.1' ); + _doing_it_wrong( "add_theme_support( 'html5' )", __( 'You need to pass an array of types.' ), '3.6.1' ); return false; } diff --git a/src/wp-includes/wp-db.php b/src/wp-includes/wp-db.php index c093d0c95b..bc5bef36a8 100644 --- a/src/wp-includes/wp-db.php +++ b/src/wp-includes/wp-db.php @@ -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 ); }