WordPress.org

Make WordPress Core

Changeset 35542


Ignore:
Timestamp:
11/05/2015 08:55:28 PM (6 years ago)
Author:
DrewAPicture
Message:

I18N: Add translator comments to three _doing_it_wrong() messages added for 4.3 and 4.4.

Also adds a full-stop to an invalid taxonomy message introduced in [34745] and later modified in [35428] for wp_insert_post().

Props pavelevap.
Fixes #34249.

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

Legend:

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

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

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