wp/wp-includes/pomo/entry.php
changeset 16 a86126ab1dd4
parent 9 177826044cd9
child 18 be944660c56a
--- 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;