WordPress.org

Make WordPress Core

Ticket #20801: 20801.3.diff

File 20801.3.diff, 992 bytes (added by iandunn, 11 months ago)
  • wp-includes/widgets.php

     
    7171        // Functions you'll need to call. 
    7272 
    7373        /** 
    74          * PHP4 constructor 
    75          */ 
    76         function WP_Widget( $id_base, $name, $widget_options = array(), $control_options = array() ) { 
    77                 WP_Widget::__construct( $id_base, $name, $widget_options, $control_options ); 
    78         } 
    79  
    80         /** 
    8174         * PHP5 constructor 
    8275         * 
    8376         * @param string $id_base Optional Base ID for the widget, lower case, 
     
    9992        } 
    10093 
    10194        /** 
     95         * PHP4 constructor 
     96         */ 
     97        function WP_Widget( $id_base, $name, $widget_options = array(), $control_options = array() ) { 
     98                WP_Widget::__construct( $id_base, $name, $widget_options, $control_options ); 
     99        } 
     100 
     101        /** 
    102102         * Constructs name attributes for use in form() fields 
    103103         * 
    104104         * This function should be used in form() methods to create name attributes for fields to be saved by update()