From 3771cf0c538db4e1b1075c5a4e314e5cd5cf35fd Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 19 May 2013 12:32:20 +0000 Subject: [PATCH] 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 --- wp-includes/widgets.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index 6aa319f4f0..d6f213a1d5 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -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 *