Move the PHP4 constructor below the PHP5 one to avoid E_STRICT message. props uuf6429, iandunn. fixes #20801.
git-svn-id: https://develop.svn.wordpress.org/trunk@24296 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
753eb290be
commit
3771cf0c53
|
@ -70,13 +70,6 @@ class WP_Widget {
|
|||
|
||||
// Functions you'll need to call.
|
||||
|
||||
/**
|
||||
* PHP4 constructor
|
||||
*/
|
||||
function WP_Widget( $id_base, $name, $widget_options = array(), $control_options = array() ) {
|
||||
WP_Widget::__construct( $id_base, $name, $widget_options, $control_options );
|
||||
}
|
||||
|
||||
/**
|
||||
* PHP5 constructor
|
||||
*
|
||||
|
@ -98,6 +91,13 @@ class WP_Widget {
|
|||
$this->control_options = wp_parse_args( $control_options, array('id_base' => $this->id_base) );
|
||||
}
|
||||
|
||||
/**
|
||||
* PHP4 constructor
|
||||
*/
|
||||
function WP_Widget( $id_base, $name, $widget_options = array(), $control_options = array() ) {
|
||||
WP_Widget::__construct( $id_base, $name, $widget_options, $control_options );
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs name attributes for use in form() fields
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue