From 9992044ce6f6681bcf77ff2c17912ceafda20629 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Wed, 19 Dec 2018 17:04:48 +0000 Subject: [PATCH] Docs: Add missing `@return` notations to three `MO` method DocBlocks. Props subrataemfluence. Fixes #44421. Built from https://develop.svn.wordpress.org/trunk@44336 git-svn-id: http://core.svn.wordpress.org/trunk@44166 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pomo/mo.php | 3 +++ wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/pomo/mo.php b/wp-includes/pomo/mo.php index 25b9e37a9f..836af801cd 100644 --- a/wp-includes/pomo/mo.php +++ b/wp-includes/pomo/mo.php @@ -35,6 +35,7 @@ if ( ! class_exists( 'MO', false ) ) : * Fills up with the entries from MO file $filename * * @param string $filename MO file to load + * @return bool True if the import from file was successful, otherwise false. */ function import_from_file( $filename ) { $reader = new POMO_FileReader( $filename ); @@ -211,6 +212,7 @@ if ( ! class_exists( 'MO', false ) ) : /** * @param POMO_FileReader $reader + * @return bool True if the import was successful, otherwise false. */ function import_from_reader( $reader ) { $endian_string = MO::get_byteorder( $reader->readint32() ); @@ -307,6 +309,7 @@ if ( ! class_exists( 'MO', false ) ) : * 0x04 as context separator or 0x00 as singular/plural separator * @param string $translation translation string from MO file. Might contain * 0x00 as a plural translations separator + * @return Translation_Entry Entry instance. */ function &make_entry( $original, $translation ) { $entry = new Translation_Entry(); diff --git a/wp-includes/version.php b/wp-includes/version.php index 5867885bd3..78c8c0a80e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-alpha-44335'; +$wp_version = '5.1-alpha-44336'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.