diff --git a/wp-includes/pomo/entry.php b/wp-includes/pomo/entry.php index b5e56ff28a..bed32210bc 100644 --- a/wp-includes/pomo/entry.php +++ b/wp-includes/pomo/entry.php @@ -65,8 +65,13 @@ if ( ! class_exists( 'Translation_Entry', false ) ) : /** * PHP4 constructor. + * + * @deprecated 5.3.0 Use __construct() instead. + * + * @see Translation_Entry::__construct() */ public function Translation_Entry( $args = array() ) { + _deprecated_constructor( self::class, '5.3.0', static::class ); self::__construct( $args ); } diff --git a/wp-includes/pomo/streams.php b/wp-includes/pomo/streams.php index 5c3c775ef4..c8b4223f44 100644 --- a/wp-includes/pomo/streams.php +++ b/wp-includes/pomo/streams.php @@ -24,8 +24,13 @@ if ( ! class_exists( 'POMO_Reader', false ) ) : /** * PHP4 constructor. + * + * @deprecated 5.3.0 Use __construct() instead. + * + * @see POMO_Reader::__construct() */ public function POMO_Reader() { + _deprecated_constructor( self::class, '5.3.0', static::class ); self::__construct(); } @@ -150,8 +155,13 @@ if ( ! class_exists( 'POMO_FileReader', false ) ) : /** * PHP4 constructor. + * + * @deprecated 5.3.0 Use __construct() instead. + * + * @see POMO_FileReader::__construct() */ public function POMO_FileReader( $filename ) { + _deprecated_constructor( self::class, '5.3.0', static::class ); self::__construct( $filename ); } @@ -229,8 +239,13 @@ if ( ! class_exists( 'POMO_StringReader', false ) ) : /** * PHP4 constructor. + * + * @deprecated 5.3.0 Use __construct() instead. + * + * @see POMO_StringReader::__construct() */ public function POMO_StringReader( $str = '' ) { + _deprecated_constructor( self::class, '5.3.0', static::class ); self::__construct( $str ); } @@ -295,8 +310,13 @@ if ( ! class_exists( 'POMO_CachedFileReader', false ) ) : /** * PHP4 constructor. + * + * @deprecated 5.3.0 Use __construct() instead. + * + * @see POMO_CachedFileReader::__construct() */ public function POMO_CachedFileReader( $filename ) { + _deprecated_constructor( self::class, '5.3.0', static::class ); self::__construct( $filename ); } } @@ -316,8 +336,13 @@ if ( ! class_exists( 'POMO_CachedIntFileReader', false ) ) : /** * PHP4 constructor. + * + * @deprecated 5.3.0 Use __construct() instead. + * + * @see POMO_CachedIntFileReader::__construct() */ function POMO_CachedIntFileReader( $filename ) { + _deprecated_constructor( self::class, '5.3.0', static::class ); self::__construct( $filename ); } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 233e76086c..5b59da9b76 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-46628'; +$wp_version = '5.4-alpha-46629'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.