Changeset 32990 for trunk/src/wp-includes/widgets.php
- Timestamp:
- 06/28/2015 03:26:41 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/widgets.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets.php
r32639 r32990 174 174 */ 175 175 public function WP_Widget( $id_base, $name, $widget_options = array(), $control_options = array() ) { 176 _deprecated_constructor( 'WP_Widget', '4.3.0' ); 176 177 WP_Widget::__construct( $id_base, $name, $widget_options, $control_options ); 177 178 } … … 564 565 public $widgets = array(); 565 566 567 /** 568 * PHP5 constructor. 569 */ 570 public function __construct() { 571 add_action( 'widgets_init', array( $this, '_register_widgets' ), 100 ); 572 } 573 574 /** 575 * PHP4 constructor. 576 */ 566 577 public function WP_Widget_Factory() { 567 add_action( 'widgets_init', array( $this, '_register_widgets' ), 100 ); 578 _deprecated_constructor( 'WP_Widget_Factory', '4.2.0' ); 579 self::__construct(); 568 580 } 569 581
Note: See TracChangeset
for help on using the changeset viewer.