mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Editor: word count: Remove indentation from the translator comment.
Avoids a duplicate comment in the POT file. see #30966. Built from https://develop.svn.wordpress.org/trunk@33517 git-svn-id: http://core.svn.wordpress.org/trunk@33484 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
684d54e7a5
commit
0e1476d078
@ -2851,9 +2851,11 @@ function wp_trim_words( $text, $num_words = 55, $more = null ) {
|
|||||||
$original_text = $text;
|
$original_text = $text;
|
||||||
$text = wp_strip_all_tags( $text );
|
$text = wp_strip_all_tags( $text );
|
||||||
|
|
||||||
/* translators: If your word count is based on single characters (e.g. East Asian characters),
|
/*
|
||||||
enter 'characters_excluding_spaces' or 'characters_including_spaces'. Otherwise, enter 'words'.
|
* translators: If your word count is based on single characters (e.g. East Asian characters),
|
||||||
Do not translate into your own language. */
|
* enter 'characters_excluding_spaces' or 'characters_including_spaces'. Otherwise, enter 'words'.
|
||||||
|
* Do not translate into your own language.
|
||||||
|
*/
|
||||||
if ( strpos( _x( 'words', 'Word count type. Do not translate!' ), 'characters' ) === 0 && preg_match( '/^utf\-?8$/i', get_option( 'blog_charset' ) ) ) {
|
if ( strpos( _x( 'words', 'Word count type. Do not translate!' ), 'characters' ) === 0 && preg_match( '/^utf\-?8$/i', get_option( 'blog_charset' ) ) ) {
|
||||||
$text = trim( preg_replace( "/[\n\r\t ]+/", ' ', $text ), ' ' );
|
$text = trim( preg_replace( "/[\n\r\t ]+/", ' ', $text ), ' ' );
|
||||||
preg_match_all( '/./u', $text, $words_array );
|
preg_match_all( '/./u', $text, $words_array );
|
||||||
|
@ -401,9 +401,11 @@ function wp_default_scripts( &$scripts ) {
|
|||||||
|
|
||||||
$scripts->add( 'word-count', "/wp-admin/js/word-count$suffix.js", array(), false, 1 );
|
$scripts->add( 'word-count', "/wp-admin/js/word-count$suffix.js", array(), false, 1 );
|
||||||
did_action( 'init' ) && $scripts->localize( 'word-count', 'wordCountL10n', array(
|
did_action( 'init' ) && $scripts->localize( 'word-count', 'wordCountL10n', array(
|
||||||
/* translators: If your word count is based on single characters (e.g. East Asian characters),
|
/*
|
||||||
enter 'characters_excluding_spaces' or 'characters_including_spaces'. Otherwise, enter 'words'.
|
* translators: If your word count is based on single characters (e.g. East Asian characters),
|
||||||
Do not translate into your own language. */
|
* enter 'characters_excluding_spaces' or 'characters_including_spaces'. Otherwise, enter 'words'.
|
||||||
|
* Do not translate into your own language.
|
||||||
|
*/
|
||||||
'type' => _x( 'words', 'Word count type. Do not translate!' ),
|
'type' => _x( 'words', 'Word count type. Do not translate!' ),
|
||||||
'shortcodes' => ! empty( $GLOBALS['shortcode_tags'] ) ? array_keys( $GLOBALS['shortcode_tags'] ) : array()
|
'shortcodes' => ! empty( $GLOBALS['shortcode_tags'] ) ? array_keys( $GLOBALS['shortcode_tags'] ) : array()
|
||||||
) );
|
) );
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.3-RC1-33516';
|
$wp_version = '4.3-RC1-33517';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user