From 97bb45fe22889603c5d8e8be5fe5cff56842f754 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 26 Jun 2020 09:28:21 +0000 Subject: [PATCH] Docs: Spell "line breaks" in a consistent way. See #49572. git-svn-id: https://develop.svn.wordpress.org/trunk@48175 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/deprecated.php | 4 ++-- src/wp-includes/formatting.php | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/wp-includes/deprecated.php b/src/wp-includes/deprecated.php index ad0af4c12e..0a3f609fc1 100644 --- a/src/wp-includes/deprecated.php +++ b/src/wp-includes/deprecated.php @@ -2947,13 +2947,13 @@ function get_current_theme() { * Accepts matches array from preg_replace_callback in wpautop() or a string. * * Ensures that the contents of a `
...
` HTML block are not - * converted into paragraphs or line-breaks. + * converted into paragraphs or line breaks. * * @since 1.2.0 * @deprecated 3.4.0 * * @param array|string $matches The array or string - * @return string The pre block without paragraph/line-break conversion. + * @return string The pre block without paragraph/line break conversion. */ function clean_pre($matches) { _deprecated_function( __FUNCTION__, '3.4.0' ); diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index 5a0fab7f14..b39c35f185 100644 --- a/src/wp-includes/formatting.php +++ b/src/wp-includes/formatting.php @@ -425,16 +425,16 @@ function _wptexturize_pushpop_element( $text, &$stack, $disabled_elements ) { } /** - * Replaces double line-breaks with paragraph elements. + * Replaces double line breaks with paragraph elements. * * A group of regex replaces used to identify text formatted with newlines and - * replace double line-breaks with HTML paragraph tags. The remaining line-breaks + * replace double line breaks with HTML paragraph tags. The remaining line breaks * after conversion become <
> tags, unless $br is set to '0' or 'false'. * * @since 0.71 * * @param string $pee The text which has to be formatted. - * @param bool $br Optional. If set, this will convert all remaining line-breaks + * @param bool $br Optional. If set, this will convert all remaining line breaks * after paragraphing. Line breaks within `