Plugin Directory

Changeset 1229092


Ignore:
Timestamp:
08/24/2015 09:10:18 AM (11 years ago)
Author:
misharnet
Message:

Changed WP_Widget that is deprecated since version 4.3.0, to construct.

Location:
ns-widget-recent-comments/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ns-widget-recent-comments/trunk/readme.txt

    r1203363 r1229092  
    33Tags: netscripter, recent comments, comments, widget, avatar, free, recent comments with avatars
    44Requires at least: 3.0
    5 Tested up to: 4.2.2
     5Tested up to: 4.3.0
    66Stable tag: trunk
    77License: GNU General Public License
     
    7676Please send your localization files (.mo и .po) to admin@netscripter.me
    7777
     78= 1.2 =
     79* Changed WP_Widget that is deprecated since version 4.3.0, to __construct.
     80
    7881= 1.1 =
    7982* This version fixes Translation bugs, that prevented translated .po file not to show in desired language.
     
    8588== Upgrade Notice ==
    8689
     90= 1.2 =
     91This version makes NS Widget Recent Comments compatibile with 4.3.0 release and remove  WP_Widget is deprecated since version 4.3.0! Use __construct() Notice. Upgrade immediately.
     92
    8793= 1.1 =
    8894This version fixes Translation bugs, that prevented translated .po file not to show in desired language.  Upgrade immediately.
  • ns-widget-recent-comments/trunk/widget-recent-comments.php

    r1204230 r1229092  
    66* Author URI: http://netscripter.me
    77* Description: Add a recent comments widget that shows author's avatar.
    8 * Version: 1.1
     8* Version: 1.2
    99* Text Domain: widget-recent-comments
    1010*/
     
    3333    function NS_Recent_Comments_() {
    3434        $widget_ops = array('classname' => 'widget_ns', 'description' => __( 'Recent comments, with Avatars.' , 'widget-recent-comments') );
    35         $this->WP_Widget('ns-recent-comments', __('NS Recent Comments', 'widget-recent-comments'), $widget_ops);
     35        parent::__construct('ns-recent-comments', __('NS Recent Comments', 'widget-recent-comments'), $widget_ops);
    3636        $this->alt_option_name = 'widget_ns';
    3737
Note: See TracChangeset for help on using the changeset viewer.