From 6be425959a30a7464c5bc8a6a19eb00cc0bde187 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 2 Nov 2019 20:06:03 +0000 Subject: [PATCH] Docs: Add missing `@deprecated` tags to PHP 4 constructors in `WP_Widget` and `WP_Widget_Factory()`. Correct version number in `_deprecated_constructor()` call in `WP_Widget_Factory()`, see [32990]. Props jrf. See #48252. Built from https://develop.svn.wordpress.org/trunk@46627 git-svn-id: http://core.svn.wordpress.org/trunk@46427 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-widget-factory.php | 5 ++++- wp-includes/class-wp-widget.php | 3 ++- wp-includes/version.php | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-widget-factory.php b/wp-includes/class-wp-widget-factory.php index ec5a96d6a9..b72538336e 100644 --- a/wp-includes/class-wp-widget-factory.php +++ b/wp-includes/class-wp-widget-factory.php @@ -36,9 +36,12 @@ class WP_Widget_Factory { * PHP4 constructor. * * @since 2.8.0 + * @deprecated 4.3.0 Use __construct() instead. + * + * @see WP_Widget_Factory::__construct() */ public function WP_Widget_Factory() { - _deprecated_constructor( 'WP_Widget_Factory', '4.2.0' ); + _deprecated_constructor( 'WP_Widget_Factory', '4.3.0' ); self::__construct(); } diff --git a/wp-includes/class-wp-widget.php b/wp-includes/class-wp-widget.php index c69e0c9a0a..89a42ae9f7 100644 --- a/wp-includes/class-wp-widget.php +++ b/wp-includes/class-wp-widget.php @@ -177,8 +177,9 @@ class WP_Widget { * PHP4 constructor. * * @since 2.8.0 + * @deprecated 4.3.0 Use __construct() instead. * - * @see __construct() + * @see WP_Widget::__construct() * * @param string $id_base Optional Base ID for the widget, lowercase and unique. If left empty, * a portion of the widget's class name will be used Has to be unique. diff --git a/wp-includes/version.php b/wp-includes/version.php index 5cc75bca97..471e8d6ca1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-46626'; +$wp_version = '5.4-alpha-46627'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.