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
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user