Changeset 29840
- Timestamp:
- 10/05/2014 09:05:54 PM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.wp-styles.php
r25950 r29840 76 76 77 77 if ( false !== stripos( $data, '</style>' ) ) { 78 _doing_it_wrong( __FUNCTION__, 'Do not pass style tags to wp_add_inline_style().', '3.7' );78 _doing_it_wrong( __FUNCTION__, __( 'Do not pass style tags to wp_add_inline_style().' ), '3.7' ); 79 79 $data = trim( preg_replace( '#<style[^>]*>(.*)</style>#is', '$1', $data ) ); 80 80 } -
trunk/src/wp-includes/theme.php
r29275 r29840 1483 1483 $args = array( 0 => array( 'comment-list', 'comment-form', 'search-form' ) ); 1484 1484 } elseif ( ! is_array( $args[0] ) ) { 1485 _doing_it_wrong( "add_theme_support( 'html5' )", 'You need to pass an array of types.', '3.6.1' );1485 _doing_it_wrong( "add_theme_support( 'html5' )", __( 'You need to pass an array of types.' ), '3.6.1' ); 1486 1486 return false; 1487 1487 } -
trunk/src/wp-includes/wp-db.php
r29788 r29840 1043 1043 1044 1044 $class = get_class( $this ); 1045 _doing_it_wrong( $class, "$class must set a database connection for use with escaping.", E_USER_NOTICE ); 1045 if ( function_exists( '__' ) ) { 1046 _doing_it_wrong( $class, sprintf( __( '%s must set a database connection for use with escaping.' ), $class ), E_USER_NOTICE ); 1047 } else { 1048 _doing_it_wrong( $class, sprintf( '%s must set a database connection for use with escaping.', $class ), E_USER_NOTICE ); 1049 } 1046 1050 return addslashes( $string ); 1047 1051 }
Note: See TracChangeset
for help on using the changeset viewer.