Plugin Directory

Changeset 1521277


Ignore:
Timestamp:
10/24/2016 05:42:42 PM (9 years ago)
Author:
msalsas
Message:

Remove WP_Widget as deprecated constructor

Location:
dynamic-audio-player-basic/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • dynamic-audio-player-basic/trunk/dynamicplayer.php

    r1486517 r1521277  
    44Plugin URI: http://dynamicaudioplayer.com
    55Description: This plugin allows you to add an audio player widget with a dynamic playlist and shortcodes for single buttons
    6 Version: 3.1.0
     6Version: 3.1.1
    77Author: Manolo Salsas Durán
    88Author URI: http://msalsas.com/
     
    417417class Dynamic_Player_Widget extends WP_Widget {
    418418
    419     function Dynamic_Player_Widget() {
     419    function __construct() {
    420420        $widget_ops = array( 'classname'   => 'dyn-description',
    421421                             'description' => __( 'Dynamic Audio Player widget is automatically added. Just type your options. Do not try to add more widgets.', 'dynamicPlayer' )
     
    424424        $control_ops = array( 'width' => 300, 'height' => 350, 'id_base' => 'dynamic-player-widget' );
    425425
    426         $this->WP_Widget( 'dynamic-player-widget', __( 'Dynamic Audio Player Widget', 'dynamicPlayer' ), $widget_ops, $control_ops );
     426        parent::__construct( 'dynamic-player-widget', __( 'Dynamic Audio Player Widget', 'dynamicPlayer' ), $widget_ops, $control_ops );
    427427    }
    428428
  • dynamic-audio-player-basic/trunk/readme.txt

    r1486517 r1521277  
    5050
    5151== Changelog ==
     52
     53= 3.1.1 =
     54Remove WP_Widget as deprecated constructor.
    5255
    5356= 3.1.0 =
Note: See TracChangeset for help on using the changeset viewer.