Changeset 1391425
- Timestamp:
- 04/10/2016 03:44:21 PM (10 years ago)
- Location:
- advanced-comments-widget
- Files:
-
- 17 added
- 4 edited
-
tags/1.1.2 (added)
-
tags/1.1.2/README.md (added)
-
tags/1.1.2/advanced-comments-widget.php (added)
-
tags/1.1.2/assets (added)
-
tags/1.1.2/assets/banner-772x250.jpg (added)
-
tags/1.1.2/assets/icon-128x128.jpg (added)
-
tags/1.1.2/assets/screenshot-1.jpg (added)
-
tags/1.1.2/assets/screenshot-2.gif (added)
-
tags/1.1.2/assets/screenshot-3.jpg (added)
-
tags/1.1.2/assets/screenshot-4.jpg (added)
-
tags/1.1.2/inc (added)
-
tags/1.1.2/inc/class-acw-recent-comments-utilities.php (added)
-
tags/1.1.2/inc/class-acw-recent-comments.php (added)
-
tags/1.1.2/inc/class-widget-acw-recent-comments.php (added)
-
tags/1.1.2/js (added)
-
tags/1.1.2/js/admin.js (added)
-
tags/1.1.2/readme.txt (added)
-
trunk/advanced-comments-widget.php (modified) (1 diff)
-
trunk/inc/class-acw-recent-comments-utilities.php (modified) (1 diff)
-
trunk/inc/class-widget-acw-recent-comments.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
advanced-comments-widget/trunk/advanced-comments-widget.php
r1379963 r1391425 6 6 * 7 7 * @license http://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ 8 * @version 1.1. 18 * @version 1.1.2 9 9 * 10 10 * Plugin Name: Advanced Comments Widget 11 11 * Plugin URI: http://darrinb.com/plugins/advanced-comments-widget 12 12 * Description: A highly customizable recent comments widget. 13 * Version: 1.1. 113 * Version: 1.1.2 14 14 * Author: Darrin Boutote 15 15 * Author URI: http://darrinb.com -
advanced-comments-widget/trunk/inc/class-acw-recent-comments-utilities.php
r1379053 r1391425 29 29 class ACW_Recent_Comments_Utilities 30 30 { 31 32 /** 33 * Sets default parameters 34 * 35 * Use 'acw_instance_defaults' filter to modify accepted defaults. 36 * 37 * @uses WordPress current_theme_supports() 38 * 39 * @access public 40 * 41 * @since 1.0 42 * 43 * @return array $defaults The default values for the widget. 44 */ 45 public static function instance_defaults() 46 { 47 $_comment_format = current_theme_supports( 'html5', 'comment-list' ) ? 'html5' : 'xhtml'; 48 $_list_style = ( 'html5' == $_comment_format ) ? 'div' : 'ul' ; 49 50 $_defaults = array( 51 'title' => __('Recent Comments'), 52 'post_type' => 'post', 53 'exclude_pings' => 1, 54 'number' => 5, 55 'order' => 'desc', 56 'show_thumbs' => 1, 57 'thumb_size' => 55, 58 'show_excerpt' => 1, 59 'excerpt_length' => 50, 60 'comment_format' => $_comment_format, 61 'list_style' => $_list_style, 62 ); 63 64 $defaults = apply_filters( 'acw_instance_defaults', $_defaults ); 65 66 return $defaults; 67 } 31 68 32 69 -
advanced-comments-widget/trunk/inc/class-widget-acw-recent-comments.php
r1379963 r1391425 23 23 * Core class used to implement a Recent Comments widget. 24 24 * 25 * @version 1.1.2 Added method to build $defaults 25 26 * @version 1.1.1 Updated "acw_form_field_{$name}" filter 26 27 * @version 1.1 Added support for Selective Refresh … … 81 82 $args['widget_id'] = $this->id; 82 83 } 84 85 $defaults = ACW_Recent_Comments_Utilities::instance_defaults(); 86 $instance = wp_parse_args( (array) $instance, $defaults ); 83 87 84 88 // build out the instance for plugin devs … … 223 227 { 224 228 225 $_comment_format = current_theme_supports( 'html5', 'comment-list' ) ? 'html5' : 'xhtml'; 226 $_list_style = ( 'html5' == $_comment_format ) ? 'div' : 'ul' ; 227 228 $_defaults = array( 229 'title' => __('Recent Comments'), 230 'post_type' => 'post', 231 'exclude_pings' => 1, 232 'number' => 5, 233 'order' => 'desc', 234 'show_thumbs' => 1, 235 'thumb_size' => 55, 236 'show_excerpt' => 1, 237 'excerpt_length' => 50, 238 'comment_format' => $_comment_format, 239 'list_style' => $_list_style, 240 ); 241 242 $_defaults = apply_filters( 'acw_instance_defaults', $_defaults ); 243 $instance = wp_parse_args( (array) $instance, $_defaults ); 229 $defaults = ACW_Recent_Comments_Utilities::instance_defaults(); 230 $instance = wp_parse_args( (array) $instance, $defaults ); 244 231 245 232 $_fields = array( -
advanced-comments-widget/trunk/readme.txt
r1379963 r1391425 4 4 Requires at least: 4.4 5 5 Tested up to: 4.5 6 Stable tag: 1.1. 16 Stable tag: 1.1.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 73 73 == Changelog == 74 74 75 = 1.1.2 = 76 * compatibility fix for WP 4.5 when rendering ::widget() in the Customizer 77 75 78 = 1.1.1 = 76 79 * added field reference to `"acw_form_field_{$name}"` filter
Note: See TracChangeset
for help on using the changeset viewer.