Make WordPress Core

Ticket #33933: wigets.php.patch

File wigets.php.patch, 706 bytes (added by nmeiser, 9 years ago)

Patchfile for wp-includes/widgets.php

  • wp-includes/widgets.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    173173         * @param array  $control_options
    174174         */
    175175        public function WP_Widget( $id_base, $name, $widget_options = array(), $control_options = array() ) {
    176                 _deprecated_constructor( 'WP_Widget', '4.3.0' );
     176                if (version_compare(phpversion(), '5.0.0', '<')) {
     177                    _deprecated_constructor( 'WP_Widget', '4.3.0' );
     178                }
    177179                WP_Widget::__construct( $id_base, $name, $widget_options, $control_options );
    178180        }
    179181