Make WordPress Core

Changeset 46627


Ignore:
Timestamp:
11/02/2019 08:04:27 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-widget-factory.php

    r46220 r46627  
    3737     *
    3838     * @since 2.8.0
     39     * @deprecated 4.3.0 Use __construct() instead.
     40     *
     41     * @see WP_Widget_Factory::__construct()
    3942     */
    4043    public function WP_Widget_Factory() {
    41         _deprecated_constructor( 'WP_Widget_Factory', '4.2.0' );
     44        _deprecated_constructor( 'WP_Widget_Factory', '4.3.0' );
    4245        self::__construct();
    4346    }
  • trunk/src/wp-includes/class-wp-widget.php

    r45590 r46627  
    178178     *
    179179     * @since 2.8.0
    180      *
    181      * @see __construct()
     180     * @deprecated 4.3.0 Use __construct() instead.
     181     *
     182     * @see WP_Widget::__construct()
    182183     *
    183184     * @param string $id_base         Optional Base ID for the widget, lowercase and unique. If left empty,
Note: See TracChangeset for help on using the changeset viewer.