Make WordPress Core


Ignore:
Timestamp:
05/19/2013 12:32:20 PM (13 years ago)
Author:
SergeyBiryukov
Message:

Move the PHP4 constructor below the PHP5 one to avoid E_STRICT message. props uuf6429, iandunn. fixes #20801.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/widgets.php

    r24126 r24296  
    7070
    7171        // Functions you'll need to call.
    72 
    73         /**
    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         }
    7972
    8073        /**
    … …  
    9790                $this->widget_options = wp_parse_args( $widget_options, array('classname' => $this->option_name) );
    9891                $this->control_options = wp_parse_args( $control_options, array('id_base' => $this->id_base) );
     92        }
     93
     94        /**
     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 );
    9999        }
    100100
Note: See TracChangeset for help on using the changeset viewer.