Plugin Directory

Changeset 1744949


Ignore:
Timestamp:
10/11/2017 06:57:27 PM (8 years ago)
Author:
LesBessant
Message:

Update for PHP7 compatibility

Location:
list-drafts-widget
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • list-drafts-widget/tags/2.5/list-drafts.php

    r978154 r1744949  
    44Plugin URI: http://losingit.me.uk/2010/03/14/list-drafts-widget-revisited
    55Description: A sidebar widget that lists the titles of draft posts
    6 Version: 2.1.1
     6Version: 2.5
    77Author: Les Bessant
    88Author URI: http://losingit.me.uk/
     
    5757     * Widget setup.
    5858     */
    59     function ListDrafts_Widget() {
     59
     60// Update October 2017- new constructor for PHP 7 compatibility
     61        function __construct()
     62        {
    6063        /* Widget settings. */
    6164        $widget_ops = array( 'classname' => 'example', 'description' => __('A widget which displays the title of draft posts.', 'listdrafts') );
  • list-drafts-widget/tags/2.5/readme.txt

    r1670456 r1744949  
    33Tags: draft, drafts, sidebar, widget
    44Requires at least: 2.8
    5 Tested up to: 4.8
    6 Stable tag: 2.1.1
     5Tested up to: 4.8.2
     6Stable tag: 2.5
    77
    88Outputs an unordered list of the titles of saved draft posts in a sidebar widget.
     
    3434
    3535== Changelog ==
     36= 2.5 =
     37* Changed constructor for PHP 7 compatibility
     38
    3639= 2.1.1 =
    3740* Minor edits, confirming compatibility with WordPress 4.0
     
    5457
    55581. Widget configuration options
    56 2. Example of output
     592. Sample output
    5760
  • list-drafts-widget/trunk/list-drafts.php

    r978154 r1744949  
    44Plugin URI: http://losingit.me.uk/2010/03/14/list-drafts-widget-revisited
    55Description: A sidebar widget that lists the titles of draft posts
    6 Version: 2.1.1
     6Version: 2.5
    77Author: Les Bessant
    88Author URI: http://losingit.me.uk/
     
    5757     * Widget setup.
    5858     */
    59     function ListDrafts_Widget() {
     59
     60// Update October 2017- new constructor for PHP 7 compatibility
     61        function __construct()
     62        {
    6063        /* Widget settings. */
    6164        $widget_ops = array( 'classname' => 'example', 'description' => __('A widget which displays the title of draft posts.', 'listdrafts') );
  • list-drafts-widget/trunk/readme.txt

    r1670456 r1744949  
    33Tags: draft, drafts, sidebar, widget
    44Requires at least: 2.8
    5 Tested up to: 4.8
    6 Stable tag: 2.1.1
     5Tested up to: 4.8.2
     6Stable tag: 2.5
    77
    88Outputs an unordered list of the titles of saved draft posts in a sidebar widget.
     
    3434
    3535== Changelog ==
     36= 2.5 =
     37* Changed constructor for PHP 7 compatibility
     38
    3639= 2.1.1 =
    3740* Minor edits, confirming compatibility with WordPress 4.0
     
    5457
    55581. Widget configuration options
    56 2. Example of output
     592. Sample output
    5760
Note: See TracChangeset for help on using the changeset viewer.