Plugin Directory

Changeset 995198


Ignore:
Timestamp:
09/23/2014 06:34:50 AM (12 years ago)
Author:
RossC
Message:

Better use of widget_title filter to allow hooks to be used on it.

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

Legend:

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

    r865844 r995198  
    33Tags: widget, category, categories, recent posts, sidebar
    44Requires at least: 3.0.1
    5 Tested up to: 3.8.1
     5Tested up to: 4.0
    66Stable tag: trunk
    77License: GPLv2 or later
     
    19192. Activate the plugin through the 'Plugins' menu in WordPress
    20203. Navigate to the 'Widgets' page found under the 'Appearance' menu item
    21 4. Drag the 'Recent Posts by Category' widget to the target widget area and choose your options
     214. Drag 'Recent Posts by Category Widget' to the target widget area and choose your options
    2222
    2323== Screenshots ==
     
    2727== Changelog ==
    2828
     29= 1.1 =
     30* Better use of 'widget_title' filter to allow hooks to be used on it.
     31
    2932= 1.0 =
    3033* Initial release.
  • recent-posts-by-category-widget/trunk/recent-posts-by-category-widget.php

    r865839 r995198  
    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.0
     6Version: 1.1
    77Author: Ross Cornell
    88Author URI: http://www.rosscornell.com
     
    112112        echo $before_widget;
    113113
    114         $title     = apply_filters( 'widget_title', $instance['title'] );
     114        $title     = $title = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base );
    115115        $category  = $instance['category'];
    116116        $number    = $instance['number'];
Note: See TracChangeset for help on using the changeset viewer.