From a7e305b06f7d34c6679f2790f2cefaf1b710640f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 5 Nov 2015 21:05:25 +0000 Subject: [PATCH] Use correct placeholders in translator comments added in [35542]. See #34249. Built from https://develop.svn.wordpress.org/trunk@35543 git-svn-id: http://core.svn.wordpress.org/trunk@35507 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-functions.php | 2 +- wp-includes/shortcodes.php | 4 ++-- wp-includes/version.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/post-functions.php b/wp-includes/post-functions.php index 86661cef4f..5687e34ad6 100644 --- a/wp-includes/post-functions.php +++ b/wp-includes/post-functions.php @@ -3235,7 +3235,7 @@ function wp_insert_post( $postarr, $wp_error = false ) { foreach ( $postarr['tax_input'] as $taxonomy => $tags ) { $taxonomy_obj = get_taxonomy($taxonomy); if ( ! $taxonomy_obj ) { - /* translators: 1: taxonomy name */ + /* translators: %s: taxonomy name */ _doing_it_wrong( __FUNCTION__, sprintf( __( 'Invalid taxonomy: %s.' ), $taxonomy ), '4.4.0' ); continue; } diff --git a/wp-includes/shortcodes.php b/wp-includes/shortcodes.php index 35482dbacd..22f33c32ef 100644 --- a/wp-includes/shortcodes.php +++ b/wp-includes/shortcodes.php @@ -96,7 +96,7 @@ function add_shortcode($tag, $func) { } if ( 0 !== preg_match( '@[<>&/\[\]\x00-\x20]@', $tag ) ) { - /* translators 1: shortcode name */ + /* translators: %s: shortcode name */ $message = sprintf( __( 'Invalid shortcode name: %s. Do not use spaces or reserved characters: & / < > [ ]' ), $tag ); _doing_it_wrong( __FUNCTION__, $message, '4.4.0' ); return; @@ -315,7 +315,7 @@ function do_shortcode_tag( $m ) { $attr = shortcode_parse_atts( $m[3] ); if ( ! is_callable( $shortcode_tags[ $tag ] ) ) { - /* translators: 1: shortcode tag */ + /* translators: %s: shortcode tag */ $message = sprintf( __( 'Attempting to parse a shortcode without a valid callback: %s' ), $tag ); _doing_it_wrong( __FUNCTION__, $message, '4.3.0' ); return $m[0]; diff --git a/wp-includes/version.php b/wp-includes/version.php index e4a1543cbe..0df5352836 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-beta3-35542'; +$wp_version = '4.4-beta3-35543'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.