Make WordPress Core

Changeset 35543


Ignore:
Timestamp:
11/05/2015 09:04:56 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Use correct placeholders in translator comments added in [35542].

See #34249.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r35542 r35543  
    32363236            $taxonomy_obj = get_taxonomy($taxonomy);
    32373237            if ( ! $taxonomy_obj ) {
    3238                 /* translators: 1: taxonomy name */
     3238                /* translators: %s: taxonomy name */
    32393239                _doing_it_wrong( __FUNCTION__, sprintf( __( 'Invalid taxonomy: %s.' ), $taxonomy ), '4.4.0' );
    32403240                continue;
  • trunk/src/wp-includes/shortcodes.php

    r35542 r35543  
    9797
    9898    if ( 0 !== preg_match( '@[<>&/\[\]\x00-\x20]@', $tag ) ) {
    99         /* translators 1: shortcode name */
     99        /* translators: %s: shortcode name */
    100100        $message = sprintf( __( 'Invalid shortcode name: %s. Do not use spaces or reserved characters: & / < > [ ]' ), $tag );
    101101        _doing_it_wrong( __FUNCTION__, $message, '4.4.0' );
     
    316316
    317317    if ( ! is_callable( $shortcode_tags[ $tag ] ) ) {
    318         /* translators: 1: shortcode tag */
     318        /* translators: %s: shortcode tag */
    319319        $message = sprintf( __( 'Attempting to parse a shortcode without a valid callback: %s' ), $tag );
    320320        _doing_it_wrong( __FUNCTION__, $message, '4.3.0' );
Note: See TracChangeset for help on using the changeset viewer.