Changeset 2231070
- Timestamp:
- 01/21/2020 04:30:08 PM (6 years ago)
- Location:
- super-recent-posts-widget/trunk
- Files:
-
- 4 edited
-
README.md (modified) (2 diffs)
-
lib/class-super-recent-posts-widget.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
super-recent-posts-widget.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
super-recent-posts-widget/trunk/README.md
r1856741 r2231070 4 4 Tags: post, widget 5 5 Requires at least: 3.6 6 Tested up to: 4.9.57 version: 0. 2.78 Stable tag: 0. 2.76 Tested up to: 5.3.2 7 version: 0.3.0 8 Stable tag: 0.3.0 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 78 78 == Changelog == 79 79 80 = 0.3.0 = 81 * Fix for create_function deprecation 82 * Remove warnings on widget save 83 80 84 = 0.2.7 = 81 85 * 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 11 11 */ 12 12 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 }); 14 16 add_action( 'admin_print_scripts-widgets.php', array( __CLASS__, 'enqueue' ) ); 15 17 } … … 78 80 public function update( $new_instance, $old_instance ) { 79 81 $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 80 91 $instance['title'] = esc_attr( $new_instance['title'] ); 81 92 $instance['order'] = esc_attr( $new_instance['order'] ); … … 83 94 $instance['post-type'] = esc_attr( $new_instance['post-type'] ); 84 95 $instance['taxonomy'] = esc_attr( $new_instance['taxonomy'] ); 85 $instance['term_slug'] = esc_attr( $new_instance['term_slug'] );96 86 97 $instance['number_posts'] = (int) $new_instance['number_posts']; 87 98 delete_transient( $this->id ); -
super-recent-posts-widget/trunk/readme.txt
r1856741 r2231070 3 3 Tags: post, widget 4 4 Requires at least: 3.6 5 Tested up to: 4.9.56 version: 0. 2.77 Stable tag: 0. 2.75 Tested up to: 5.3.2 6 version: 0.3.0 7 Stable tag: 0.3.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 77 77 == Changelog == 78 78 79 80 = 0.3.0 = 81 * Fix for create_function deprecation 82 * Remove warnings on widget save 83 84 79 85 = 0.2.7 = 80 86 * Fixed bug that caused caching issues if you used `srpw_get_args` -
super-recent-posts-widget/trunk/super-recent-posts-widget.php
r1856741 r2231070 3 3 Plugin Name: Super Recent Posts Widget 4 4 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.75 Version: 0.3.0 6 6 Author: Mat Gargano, StatenWeb 7 7 Author URI: http://www.matgargano.com
Note: See TracChangeset
for help on using the changeset viewer.