mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@46627 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
00384f94db
commit
dcced77dbb
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user