From 4e52c28a2e1b3b72eddd24c1923948df882b5215 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Mon, 1 Apr 2024 20:55:12 +0000 Subject: [PATCH] Docs: Various typo corrections in `wp-includes/formatting.php`. Props shailu25. Fixes #60814. See #60699. Built from https://develop.svn.wordpress.org/trunk@57910 git-svn-id: http://core.svn.wordpress.org/trunk@57411 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 8 ++++---- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index a756f6d12a..77c772001c 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -2946,7 +2946,7 @@ function _make_url_clickable_cb( $matches ) { if ( ')' === $matches[3] && strpos( $url, '(' ) ) { /* - * If the trailing character is a closing parethesis, and the URL has an opening parenthesis in it, + * If the trailing character is a closing parenthesis, and the URL has an opening parenthesis in it, * add the closing parenthesis to the URL. Then we can let the parenthesis balancer do its thing below. */ $url .= $matches[3]; @@ -3105,7 +3105,7 @@ function make_clickable( $text ) { // Long strings might contain expensive edge cases... if ( 10000 < strlen( $piece ) ) { // ...break it up. - foreach ( _split_str_by_whitespace( $piece, 2100 ) as $chunk ) { // 2100: Extra room for scheme and leading and trailing paretheses. + foreach ( _split_str_by_whitespace( $piece, 2100 ) as $chunk ) { // 2100: Extra room for scheme and leading and trailing parentheses. if ( 2101 < strlen( $chunk ) ) { $r .= $chunk; // Too big, no whitespace: bail. } else { @@ -3121,12 +3121,12 @@ function make_clickable( $text ) { [\\w]{1,20}+:// # Scheme and hier-part prefix. (?=\S{1,2000}\s) # Limit to URLs less than about 2000 characters long. [\\w\\x80-\\xff#%\\~/@\\[\\]*(+=&$-]*+ # Non-punctuation URL character. - (?: # Unroll the Loop: Only allow puctuation URL character if followed by a non-punctuation URL character. + (?: # Unroll the Loop: Only allow punctuation URL character if followed by a non-punctuation URL character. [\'.,;:!?)] # Punctuation URL character. [\\w\\x80-\\xff#%\\~/@\\[\\]*(+=&$-]++ # Non-punctuation URL character. )* ) - (\)?) # 3: Trailing closing parenthesis (for parethesis balancing post processing). + (\)?) # 3: Trailing closing parenthesis (for parenthesis balancing post processing). ~xS'; /* * The regex is a non-anchored pattern and does not have a single fixed starting character. diff --git a/wp-includes/version.php b/wp-includes/version.php index 4dee47a619..d10b36615f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-57909'; +$wp_version = '6.6-alpha-57910'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.