Ticket #25614: translate_doing_it_wrong.diff
| File translate_doing_it_wrong.diff, 1.1 KB (added by , 12 years ago) |
|---|
-
wp-includes/functions.wp-styles.php
72 72 } 73 73 74 74 if ( false !== stripos( $data, '</style>' ) ) { 75 _doing_it_wrong( __FUNCTION__, 'Do not pass style tags to wp_add_inline_style().', '3.7' );75 _doing_it_wrong( __FUNCTION__, __( 'Do not pass style tags to wp_add_inline_style().' ), '3.7' ); 76 76 $data = trim( preg_replace( '#<style[^>]*>(.*)</style>#is', '$1', $data ) ); 77 77 } 78 78 -
wp-includes/wp-db.php
880 880 return mysql_real_escape_string( $string, $this->dbh ); 881 881 882 882 $class = get_class( $this ); 883 _doing_it_wrong( $class, "$class must set a database connection for use with escaping.", E_USER_NOTICE );883 _doing_it_wrong( $class, sprintf( __( '%1$s must set a database connection for use with escaping.' ), $class ), E_USER_NOTICE ); 884 884 return addslashes( $string ); 885 885 } 886 886