WordPress.org

Make WordPress Core

Ticket #20801: patch.txt

File patch.txt, 1.1 KB (added by uuf6429, 23 months ago)

diff patch

Line 
1# This patch file was generated by NetBeans IDE
2# It uses platform neutral UTF-8 encoding and \n newlines.
3--- W:\wp-includes\widgets.php
4+++ W:\wp-includes\widgets.php
5@@ -71,13 +71,6 @@
6        // Functions you'll need to call.
7 
8        /**
9-        * PHP4 constructor
10-        */
11-       function WP_Widget( $id_base = false, $name, $widget_options = array(), $control_options = array() ) {
12-               WP_Widget::__construct( $id_base, $name, $widget_options, $control_options );
13-       }
14-
15-       /**
16         * PHP5 constructor
17         *
18         * @param string $id_base Optional Base ID for the widget, lower case,
19@@ -99,6 +92,14 @@
20        }
21 
22        /**
23+        * PHP4 constructor
24+        */
25+       function WP_Widget( $id_base = false, $name, $widget_options = array(), $control_options = array() ) {
26+               _deprecated_function( __FUNCTION__, '3.3.3', 'new WP_Widget()' );
27+               WP_Widget::__construct( $id_base, $name, $widget_options, $control_options );
28+       }
29+
30+       /**
31         * Constructs name attributes for use in form() fields
32         *
33         * This function should be used in form() methods to create name attributes for fields to be saved by update()