Making WordPress.org

Changeset 1693


Ignore:
Timestamp:
07/02/2015 02:58:20 PM (9 years ago)
Author:
iandunn
Message:

WordCamp Post Types: Call the PHP5 constructor for WP_Widget.

The PHP4 constructor is deprecated in WordPress 4.3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/inc/widgets.php

    r1371 r1693  
    1717            'description' => __( 'Your WordCamp’s Sponsors', 'wordcamporg' ),
    1818        );
    19         $this->WP_Widget( 'wcb_sponsors', __( 'Sponsors', 'wordcamporg' ), $widget_ops );
     19        WP_Widget::__construct( 'wcb_sponsors', __( 'Sponsors', 'wordcamporg' ), $widget_ops );
    2020    }
    2121
     
    113113            'description' => __( 'Your WordCamp’s Speakers', 'wordcamporg' ),
    114114        );
    115         $this->WP_Widget( 'wcpt_speakers', __( 'Speakers', 'wordcamporg' ), $widget_ops );
     115        WP_Widget::__construct( 'wcpt_speakers', __( 'Speakers', 'wordcamporg' ), $widget_ops );
    116116    }
    117117
     
    215215            'description' => __( 'Show off your WordCamp sessions', 'wordcamporg' ),
    216216        );
    217         $this->WP_Widget( 'wcpt_sessions', __( 'Sessions', 'wordcamporg' ), $widget_ops );
     217        WP_Widget::__construct( 'wcpt_sessions', __( 'Sessions', 'wordcamporg' ), $widget_ops );
    218218    }
    219219
     
    320320            'description' => __( 'Display your organizing team in the sidebar', 'wordcamporg' ),
    321321        );
    322         $this->WP_Widget( 'wcpt_organizers', __( 'Organizers', 'wordcamporg' ), $widget_ops );
     322        WP_Widget::__construct( 'wcpt_organizers', __( 'Organizers', 'wordcamporg' ), $widget_ops );
    323323    }
    324324
Note: See TracChangeset for help on using the changeset viewer.