From 97ad987b7cc9c124e7f9cd91cfdcc7e70e90a4a5 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 9 Mar 2015 02:35:36 +0000 Subject: [PATCH] [31684] has BC issues, revert it. Props nacin. See #30799. git-svn-id: https://develop.svn.wordpress.org/trunk@31685 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/widgets.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/wp-includes/widgets.php b/src/wp-includes/widgets.php index d1ad6baaa5..40bf54c528 100644 --- a/src/wp-includes/widgets.php +++ b/src/wp-includes/widgets.php @@ -164,6 +164,18 @@ class WP_Widget { $this->control_options = wp_parse_args( $control_options, array('id_base' => $this->id_base) ); } + /** + * PHP4 constructor + * + * @param string $id_base + * @param string $name + * @param array $widget_options + * @param array $control_options + */ + public 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 *