Plugin Directory

Changeset 1236069


Ignore:
Timestamp:
09/02/2015 07:10:42 AM (11 years ago)
Author:
Moisture
Message:

Fix compatibility with WordPress 4.3

Location:
am-events/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • am-events/trunk/am-events.php

    r1100514 r1236069  
    44  Plugin URI: http://wordpress.org/extend/plugins/am-events/
    55  Description: Adds a post type for events and a customizable widget for displaying upcoming events.
    6   Version: 2.0.0
     6  Version: 1.9.5
    77  Author: Atte Moisio
    88  Author URI: http://attemoisio.fi
     
    9494 */
    9595require_once dirname(__FILE__) . '/widget-upcoming-events.php';
    96 require_once dirname(__FILE__) . '/widget-event-calendar.php';
    9796require_once dirname(__FILE__) . '/template-tags.php';
    9897 
     
    216215function am_register_widgets() {
    217216    register_widget('AM_Upcoming_Events_Widget');
    218     register_widget('AM_Event_Calendar_Widget');
    219217}
    220218
  • am-events/trunk/readme.txt

    r1100118 r1236069  
    33Tags: event list, events, upcoming events, event list, custom post type, custom taxonomy, plugin, widget
    44Requires at least: 3.3.1
    5 Tested up to: 4.1
    6 Stable tag: 1.9.4
     5Tested up to: 4.3
     6Stable tag: 1.9.5
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5656== Changelog ==
    5757
    58 = 2.0.0 =
    59 * Added new event calendar widget
    60 * Enabled date archives for event posts
     58= 1.9.5 =
     59* Fixed compatibility with WordPress 4.3
    6160
    6261= 1.9.4 =
     
    130129== Upgrade Notice ==
    131130
    132 = 2.0.0 =
    133 * Adds a new event calendar widget
    134 * Enables date archives for events
     131= 1.9.5 =
     132* Fixes compatibility with WordPress 4.3
    135133
    136134= 1.9.4 =
  • am-events/trunk/widget-event-calendar.php

    r1100514 r1236069  
    2626    * Register widget with WordPress.
    2727    */
    28     function AM_Event_Calendar_Widget() {
    29         parent::WP_Widget('am_event_calendar', 'AM Event Calendar', array('description' => __( 'Display event calendar', 'am-events' )), array('width' => 400));
     28    public function __construct() {
     29        parent::__construct(
     30                'am_event_calendar',
     31                'AM Event Calendar',
     32                array('description' => __( 'Display event calendar', 'am-events' )),
     33                array('width' => 400));
    3034    }
    3135
  • am-events/trunk/widget-upcoming-events.php

    r1100514 r1236069  
    2626    * Register widget with WordPress.
    2727    */
    28     function AM_Upcoming_Events_Widget() {
    29         parent::WP_Widget('am_upcoming_events', 'AM Upcoming Events', array('description' => __( 'Display upcoming events', 'am-events' )), array('width' => 400));
     28    public function __construct() {
     29        parent::__construct(
     30                'am_upcoming_events',
     31                'AM Upcoming Events',
     32                array('description' => __( 'Display upcoming events', 'am-events' )),
     33                array('width' => 400));
    3034    }
    3135
Note: See TracChangeset for help on using the changeset viewer.