From 9f3a76079bd55e047f05df49f3950784bd5dd7de Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 25 Jan 2024 17:08:17 +0000 Subject: [PATCH] Docs: Fix a few typos in `wp-includes/pomo/po.php`. Props shailu25. Fixes #60346. Built from https://develop.svn.wordpress.org/trunk@57356 git-svn-id: http://core.svn.wordpress.org/trunk@56862 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pomo/po.php | 8 ++++---- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/pomo/po.php b/wp-includes/pomo/po.php index 7b9ec0b88b..a4e3cab4ef 100644 --- a/wp-includes/pomo/po.php +++ b/wp-includes/pomo/po.php @@ -53,7 +53,7 @@ if ( ! class_exists( 'PO', false ) ) : /** * Exports all entries to PO format * - * @return string sequence of mgsgid/msgstr PO strings, doesn't containt newline at the end + * @return string sequence of msgid/msgstr PO strings, doesn't contain a newline at the end */ public function export_entries() { // TODO: Sorting. @@ -64,7 +64,7 @@ if ( ! class_exists( 'PO', false ) ) : * Exports the whole PO file as a string * * @param bool $include_headers whether to include the headers in the export - * @return string ready for inclusion in PO file string for headers and all the enrtries + * @return string ready for inclusion in PO file string for headers and all the entries */ public function export( $include_headers = true ) { $res = ''; @@ -127,7 +127,7 @@ if ( ! class_exists( 'PO', false ) ) : $input_string = str_replace( array_keys( $replaces ), array_values( $replaces ), $input_string ); $po = $quote . implode( "{$slash}n{$quote}{$newline}{$quote}", explode( $newline, $input_string ) ) . $quote; - // Add empty string on first line for readbility. + // Add empty string on first line for readability. if ( str_contains( $input_string, $newline ) && ( substr_count( $input_string, $newline ) > 1 || substr( $input_string, -strlen( $newline ) ) !== $newline ) ) { $po = "$quote$quote$newline$po"; @@ -141,7 +141,7 @@ if ( ! class_exists( 'PO', false ) ) : * Gives back the original string from a PO-formatted string * * @param string $input_string PO-formatted string - * @return string enascaped string + * @return string unescaped string */ public static function unpoify( $input_string ) { $escapes = array( diff --git a/wp-includes/version.php b/wp-includes/version.php index 70549e9b7b..5153cadebd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57355'; +$wp_version = '6.5-alpha-57356'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.