Make WordPress Core

Ticket #25614: translate_doing_it_wrong.diff

File translate_doing_it_wrong.diff, 1.1 KB (added by georgestephanis, 12 years ago)
  • wp-includes/functions.wp-styles.php

     
    7272        }
    7373
    7474        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' );
    7676                $data = trim( preg_replace( '#<style[^>]*>(.*)</style>#is', '$1', $data ) );
    7777        }
    7878
  • wp-includes/wp-db.php

     
    880880                        return mysql_real_escape_string( $string, $this->dbh );
    881881
    882882                $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 );
    884884                return addslashes( $string );
    885885        }
    886886