From ac3ff7eb1a1d122cffbc0bf3d5623f855b3553c2 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 26 Oct 2019 00:58:04 +0000 Subject: [PATCH] Docs: Improve documentation for `wptexturize()`. Props atachibana. Fixes #48397. Built from https://develop.svn.wordpress.org/trunk@46592 git-svn-id: http://core.svn.wordpress.org/trunk@46389 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 13 ++++++++----- wp-includes/version.php | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 0114fc673f..5533000ef5 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -8,7 +8,10 @@ */ /** - * Replaces common plain text characters into formatted entities + * Replaces common plain text characters with formatted entities. + * + * Returns given text with transformations of quotes into smart quotes, apostrophes, + * dashes, ellipses, the trademark symbol, and the multiplication symbol. * * As an example, * @@ -18,13 +21,13 @@ * * ’cause today’s effort makes it worth tomorrow’s “holiday” … * - * Code within certain html blocks are skipped. + * Code within certain HTML blocks are skipped. * * Do not use this function before the {@see 'init'} action hook; everything will break. * * @since 0.71 * - * @global array $wp_cockneyreplace Array of formatted entities for certain common phrases + * @global array $wp_cockneyreplace Array of formatted entities for certain common phrases. * @global array $shortcode_tags * @staticvar array $static_characters * @staticvar array $static_replacements @@ -44,9 +47,9 @@ * @staticvar string $open_sq_flag * @staticvar string $apos_flag * - * @param string $text The text to be formatted + * @param string $text The text to be formatted. * @param bool $reset Set to true for unit testing. Translated patterns will reset. - * @return string The string replaced with html entities + * @return string The string replaced with HTML entities. */ function wptexturize( $text, $reset = false ) { global $wp_cockneyreplace, $shortcode_tags; diff --git a/wp-includes/version.php b/wp-includes/version.php index 06ce9f7c5a..22f3893628 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-46591'; +$wp_version = '5.4-alpha-46592'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.