Move the PHP4 constructor below the PHP5 one to avoid E_STRICT message. props uuf6429, iandunn. fixes #20801.
git-svn-id: http://core.svn.wordpress.org/trunk@24296 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
273666492b
commit
90aca60345
|
@ -70,13 +70,6 @@ class WP_Widget {
|
||||||
|
|
||||||
// Functions you'll need to call.
|
// 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
|
* PHP5 constructor
|
||||||
*
|
*
|
||||||
|
@ -98,6 +91,13 @@ class WP_Widget {
|
||||||
$this->control_options = wp_parse_args( $control_options, array('id_base' => $this->id_base) );
|
$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
|
* Constructs name attributes for use in form() fields
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue