- Timestamp:
- 07/04/2015 08:28:17 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyeleven/inc/widgets.php
r32116 r33085 14 14 15 15 /** 16 * Constructor16 * PHP5 constructor. 17 17 * 18 * @since Twenty Eleven 1.0 19 **/ 20 function Twenty_Eleven_Ephemera_Widget() { 21 $widget_ops = array( 'classname' => 'widget_twentyeleven_ephemera', 'description' => __( 'Use this widget to list your recent Aside, Status, Quote, and Link posts', 'twentyeleven' ) ); 22 $this->WP_Widget( 'widget_twentyeleven_ephemera', __( 'Twenty Eleven Ephemera', 'twentyeleven' ), $widget_ops ); 18 * @since Twenty Eleven 2.2 19 */ 20 function __construct() { 21 parent::__construct( 'widget_twentyeleven_ephemera', __( 'Twenty Eleven Ephemera', 'twentyeleven' ), array( 22 'classname' => 'widget_twentyeleven_ephemera', 23 'description' => __( 'Use this widget to list your recent Aside, Status, Quote, and Link posts', 'twentyeleven' ), 24 ) ); 23 25 $this->alt_option_name = 'widget_twentyeleven_ephemera'; 24 26 … … 26 28 add_action( 'deleted_post', array( &$this, 'flush_widget_cache' ) ); 27 29 add_action( 'switch_theme', array( &$this, 'flush_widget_cache' ) ); 30 } 31 32 /** 33 * PHP4 constructor. 34 * 35 * @since Twenty Eleven 1.0 36 */ 37 function Twenty_Eleven_Ephemera_Widget() { 38 _deprecated_constructor( 'Twenty_Eleven_Ephemera_Widget', '4.3.0' ); 39 self::__construct(); 28 40 } 29 41
Note: See TracChangeset
for help on using the changeset viewer.