Changeset 2565
- Timestamp:
- 02/24/2016 06:16:35 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/widgets.php
r1729 r2565 3 3 class WPorg_Handbook_Pages_Widget extends WP_Widget_Pages { 4 4 5 /** 6 * Base ID for the widget. 7 * 8 * @access protected 9 * @var string 10 */ 11 protected static $widget_id_base = 'handbook_pages'; 12 5 13 protected $post_types = array( 'handbook' ); 14 15 /** 16 * Gets the widget_id_base value. 17 * 18 * @return string 19 */ 20 public static function get_widget_id_base() { 21 return self::$widget_id_base; 22 } 6 23 7 24 function __construct() { 8 25 $widget_ops = array('classname' => 'widget_wporg_handbook_pages', 'description' => __( 'Your site’s Handbook Pages', 'wporg' ) ); 9 WP_Widget::__construct( 'handbook_pages', __( 'Handbook Pages', 'wporg' ), $widget_ops );26 WP_Widget::__construct( self::get_widget_id_base(), __( 'Handbook Pages', 'wporg' ), $widget_ops ); 10 27 } 11 28
Note: See TracChangeset
for help on using the changeset viewer.