diff -r 3d4e9c994f10 -r a86126ab1dd4 wp/wp-includes/pomo/entry.php --- a/wp/wp-includes/pomo/entry.php Tue Oct 22 16:11:46 2019 +0200 +++ b/wp/wp-includes/pomo/entry.php Tue Dec 15 13:49:49 2020 +0100 @@ -41,11 +41,11 @@ * - flags (array) -- flags like php-format */ function __construct( $args = array() ) { - // if no singular -- empty object + // If no singular -- empty object. if ( ! isset( $args['singular'] ) ) { return; } - // get member variable values from args hash + // Get member variable values from args hash. foreach ( $args as $varname => $value ) { $this->$varname = $value; } @@ -65,8 +65,13 @@ /** * PHP4 constructor. + * + * @deprecated 5.4.0 Use __construct() instead. + * + * @see Translation_Entry::__construct() */ public function Translation_Entry( $args = array() ) { + _deprecated_constructor( self::class, '5.4.0', static::class ); self::__construct( $args ); } @@ -80,9 +85,9 @@ return false; } - // Prepend context and EOT, like in MO files + // Prepend context and EOT, like in MO files. $key = ! $this->context ? $this->singular : $this->context . "\4" . $this->singular; - // Standardize on \n line endings + // Standardize on \n line endings. $key = str_replace( array( "\r\n", "\r" ), "\n", $key ); return $key;