Plugin Directory

Changeset 1222064


Ignore:
Timestamp:
08/16/2015 12:59:44 PM (11 years ago)
Author:
RossC
Message:

Removed an anonymous function that was breaking sites running PHP 5.2

Location:
recent-posts-by-category-widget/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • recent-posts-by-category-widget/trunk/readme.txt

    r1219960 r1222064  
    2727== Changelog ==
    2828
     29= 1.3 =
     30* Removed an anonymous function that was breaking sites running PHP 5.2
     31
    2932= 1.2 =
    3033* Switch to PHP5 style constructors for WP v4.3
  • recent-posts-by-category-widget/trunk/recent-posts-by-category-widget.php

    r1219952 r1222064  
    44Plugin Name: Recent Posts by Category Widget
    55Description: Just like the default Recent Posts widget except you can choose a category to pull posts from.
    6 Version: 1.2
     6Version: 1.3
    77Author: Ross Cornell
    88Author URI: http://www.rosscornell.com
     
    1313// Register widget
    1414
    15 add_action( 'widgets_init', function() { register_widget( 'rpjc_widget_cat_recent_posts' ); } );
     15add_action( 'widgets_init', 'rpjc_register_widget_cat_recent_posts' );
     16
     17function rpjc_register_widget_cat_recent_posts() {
     18
     19    register_widget( 'rpjc_widget_cat_recent_posts' );
     20
     21}
    1622
    1723class rpjc_widget_cat_recent_posts extends WP_Widget {
Note: See TracChangeset for help on using the changeset viewer.