Plugin Directory

Changeset 2231070


Ignore:
Timestamp:
01/21/2020 04:30:08 PM (6 years ago)
Author:
matstars
Message:

update to 0.3.0 on trunk

Location:
super-recent-posts-widget/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • super-recent-posts-widget/trunk/README.md

    r1856741 r2231070  
    44Tags: post, widget 
    55Requires at least: 3.6 
    6 Tested up to: 4.9.5
    7 version: 0.2.7
    8 Stable tag: 0.2.7
     6Tested up to: 5.3.2
     7version: 0.3.0
     8Stable tag: 0.3.0
    99License: GPLv2 or later 
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    7878== Changelog ==
    7979
     80= 0.3.0 =
     81* Fix for create_function deprecation
     82* Remove warnings on widget save
     83
    8084= 0.2.7 =
    8185* Fixed bug that caused caching issues if you used `srpw_get_args`
  • super-recent-posts-widget/trunk/lib/class-super-recent-posts-widget.php

    r1856741 r2231070  
    1111     */
    1212    public static function init() {
    13         add_action( 'widgets_init', create_function( '', 'register_widget( "Super_recent_posts_widget" );' ) );
     13        add_action( 'widgets_init', function(){
     14            return register_widget("Super_recent_posts_widget");
     15        });
    1416        add_action( 'admin_print_scripts-widgets.php', array( __CLASS__, 'enqueue' ) );
    1517    }
     
    7880    public function update( $new_instance, $old_instance ) {
    7981        $instance                 = array();
     82        $instance['term_slug'] = null;
     83        $instance['taxonomy'] = null;
     84        if(array_key_exists('taxonomy', $new_instance)) {
     85            $instance['taxonomy']    = esc_attr( $new_instance['taxonomy'] );
     86        }
     87        if(array_key_exists('term_slug', $new_instance)) {
     88            $instance['term_slug']    = esc_attr( $new_instance['term_slug'] );
     89        }
     90
    8091        $instance['title']        = esc_attr( $new_instance['title'] );
    8192        $instance['order']        = esc_attr( $new_instance['order'] );
     
    8394        $instance['post-type']    = esc_attr( $new_instance['post-type'] );
    8495        $instance['taxonomy']     = esc_attr( $new_instance['taxonomy'] );
    85         $instance['term_slug']    = esc_attr( $new_instance['term_slug'] );
     96       
    8697        $instance['number_posts'] = (int) $new_instance['number_posts'];
    8798        delete_transient( $this->id );
  • super-recent-posts-widget/trunk/readme.txt

    r1856741 r2231070  
    33Tags: post, widget 
    44Requires at least: 3.6 
    5 Tested up to: 4.9.5
    6 version: 0.2.7
    7 Stable tag: 0.2.7
     5Tested up to: 5.3.2
     6version: 0.3.0
     7Stable tag: 0.3.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7777== Changelog ==
    7878
     79
     80= 0.3.0 =
     81* Fix for create_function deprecation
     82* Remove warnings on widget save
     83
     84
    7985= 0.2.7 =
    8086* Fixed bug that caused caching issues if you used `srpw_get_args`
  • super-recent-posts-widget/trunk/super-recent-posts-widget.php

    r1856741 r2231070  
    33  Plugin Name: Super Recent Posts Widget 
    44  Description: A prettier, filterable and more functional recent posts widget that allows you to choose a custom post type or specific taxonomy. 
    5   Version: 0.2.7
     5  Version: 0.3.0
    66  Author: Mat Gargano, StatenWeb
    77  Author URI: http://www.matgargano.com
Note: See TracChangeset for help on using the changeset viewer.