Make WordPress Core


Ignore:
Timestamp:
04/13/2016 03:01:56 AM (10 years ago)
Author:
SergeyBiryukov
Message:

I18N: Remove tag and function names from two translatable strings.

Add translator comments.

Props andg for initial patch.
Fixes #36496.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.wp-styles.php

    r36993 r37188  
    8585
    8686        if ( false !== stripos( $data, '</style>' ) ) {
    87                 _doing_it_wrong( __FUNCTION__, __( 'Do not pass style tags to wp_add_inline_style().' ), '3.7' );
     87                _doing_it_wrong( __FUNCTION__, sprintf(
     88                        /* translators: 1: style, 2: wp_add_inline_style() */
     89                        __( 'Do not pass %1$s tags to %2$s.' ),
     90                        '<code>style</code>',
     91                        '<code>wp_add_inline_style()</code>'
     92                ), '3.7' );
    8893                $data = trim( preg_replace( '#<style[^>]*>(.*)</style>#is', '$1', $data ) );
    8994        }
Note: See TracChangeset for help on using the changeset viewer.