diff -r 34716fd837a4 -r be944660c56a wp/wp-includes/pomo/po.php --- a/wp/wp-includes/pomo/po.php Tue Dec 15 15:52:01 2020 +0100 +++ b/wp/wp-includes/pomo/po.php Wed Sep 21 18:19:35 2022 +0200 @@ -21,7 +21,7 @@ if ( ! class_exists( 'PO', false ) ) : class PO extends Gettext_Translations { - var $comments_before_headers = ''; + public $comments_before_headers = ''; /** * Exports headers to a PO entry @@ -212,11 +212,11 @@ /** * Builds a string from the entry for inclusion in PO file * - * @param Translation_Entry $entry the entry to convert to po string (passed by reference). + * @param Translation_Entry $entry the entry to convert to po string. * @return string|false PO-style formatted string for the entry or * false if the entry is empty */ - public static function export_entry( &$entry ) { + public static function export_entry( $entry ) { if ( null === $entry->singular || '' === $entry->singular ) { return false; } @@ -283,7 +283,7 @@ /** * @param string $filename - * @return boolean + * @return bool */ function import_from_file( $filename ) { $f = fopen( $filename, 'r' ); @@ -454,7 +454,7 @@ /** * @param resource $f * @param string $action - * @return boolean + * @return bool */ function read_line( $f, $action = 'read' ) { static $last_line = '';