Plugin Directory

Changeset 2013832


Ignore:
Timestamp:
01/17/2019 03:58:42 AM (7 years ago)
Author:
petroffm
Message:

Fix PHP 7.2 deprecation warning.

Location:
collapsed-archives/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • collapsed-archives/trunk/collapsed-archives.php

    r1906723 r2013832  
    181181 * Register widget
    182182 */
    183 add_action( 'widgets_init', create_function( '', 'return register_widget("Collapsed_Archives_Widget");' ) );
     183function collapsed_archives_register_widgets() {
     184    register_widget( 'Collapsed_Archives_Widget' );
     185}
     186add_action( 'widgets_init', 'collapsed_archives_register_widgets' );
    184187
    185188/**
  • collapsed-archives/trunk/readme.txt

    r1990039 r2013832  
    33Tags: archives, collapsed, collapsing, CSS
    44Requires at least: 2.8
    5 Tested up to: 5.0.0
    6 Stable tag: 1.2
     5Tested up to: 5.0
     6Stable tag: 1.3
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    2020* Option to never automatically expand list for current post / year
    2121* Choice between displaying archive links in reverse chronological order or chronological order
     22
     23= 1.3 (2019-01-16) =
     24* Fixed deprecation warning in PHP 7.2
    2225
    2326= 1.2 (2018-07-09) =
     
    5962== Changelog ==
    6063
     64= 1.3 (2019-01-16) =
     65* Fixed deprecation warning in PHP 7.2
     66
    6167= 1.2 (2018-07-09) =
    6268* Added option for never automatically expanding list for current post / year
Note: See TracChangeset for help on using the changeset viewer.