Plugin Directory

Changeset 1663777


Ignore:
Timestamp:
05/24/2017 09:07:49 AM (9 years ago)
Author:
peoplesgeek
Message:

Updated Widget constructor to newer PHP version to prevent depreciation warnings in debug log
Tested with WordPress 4.7.5

Location:
pg-context-sidebar/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pg-context-sidebar/trunk/pg-context-sidebar.php

    r854326 r1663777  
    55Tags: post sidebar, page sidebar
    66Description: This plugin allows you to display context sensitive information in the sidebar for each page or post that you want
    7 Version: 2.0.1
     7Version: 2.1
    88Author: PeoplesGeek
    99Author URI: http://www.peoplesgeek.com
     
    1111Domain Path: /languages
    1212
    13     Copyright 2012 Brian Reddick (info@peoplesgeek.com)
     13    Copyright 2012 Brian Reddick
    1414
    1515    This program is free software; you can redistribute it and/or modify
     
    446446class pgeek_cs_widget extends WP_Widget{
    447447   
    448     function pgeek_cs_widget(){
     448    function __construct(){
    449449        // setup the new widget
    450450        $widget_ops = array('classname' => 'pgeek_cs_widget_class',
    451451                            'description' => __('Display context that is related to the current post or page, or nothing if no context is set', 'pgeek-cs') );
    452         $this->WP_Widget('pgeek_cs_widget', __('PG Context Sidebar', 'pgeek-cs'), $widget_ops);
     452        parent::__construct('pgeek_cs_widget', __('PG Context Sidebar', 'pgeek-cs'), $widget_ops);
    453453    }
    454454   
  • pg-context-sidebar/trunk/readme.txt

    r1461384 r1663777  
    44Tags: post sidebar, page sidebar, context sidebar, custom sidebars, content aware sidebar, content sidebar
    55Requires at least: 3.3
    6 Tested up to: 4.5.3
    7 Stable tag: 2.0.1
     6Tested up to: 4.7.5
     7Stable tag: 2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5858== Changelog ==
    5959
     60= Version 2.1 =
     61* Updated Widget constructor to newer PHP version to prevent depreciation warnings in debug log
     62* Tested with WordPress 4.7.5
     63
    6064= Version 2.0.1 =
    61 * Tested compatability with WordPress 3.8.1
     65* Tested compatibility with WordPress 3.8.1
    6266* Added logic to stop the sidebar icon showing in post types where it had not been selected.
    63 * Added the ability to exclude the copy functionallity from some post types (was failing for some blogs with a large number of posts)
     67* Added the ability to exclude the copy functionality from some post types (was failing for some blogs with a large number of posts)
    6468
    6569= Version 2.0.0 =
Note: See TracChangeset for help on using the changeset viewer.