- Timestamp:
- 10/18/2021 05:51:17 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyeleven/inc/widgets.php
r47808 r51919 18 18 * @since Twenty Eleven 2.2 19 19 */ 20 function __construct() {20 public function __construct() { 21 21 parent::__construct( 22 22 'widget_twentyeleven_ephemera', … … 41 41 * @deprecated Twenty Eleven 2.2 42 42 */ 43 function Twenty_Eleven_Ephemera_Widget() {43 public function Twenty_Eleven_Ephemera_Widget() { 44 44 self::__construct(); 45 45 } … … 53 53 * @param array $instance An array of settings for this widget instance. 54 54 */ 55 function widget( $args, $instance ) {55 public function widget( $args, $instance ) { 56 56 $cache = wp_cache_get( 'widget_twentyeleven_ephemera', 'widget' ); 57 57 … … 159 159 * @since Twenty Eleven 1.0 160 160 */ 161 function update( $new_instance, $old_instance ) {161 public function update( $new_instance, $old_instance ) { 162 162 $instance = $old_instance; 163 163 $instance['title'] = strip_tags( $new_instance['title'] ); … … 178 178 * @since Twenty Eleven 1.0 179 179 */ 180 function flush_widget_cache() {180 public function flush_widget_cache() { 181 181 wp_cache_delete( 'widget_twentyeleven_ephemera', 'widget' ); 182 182 } … … 189 189 * @since Twenty Eleven 1.0 190 190 */ 191 function form( $instance ) {191 public function form( $instance ) { 192 192 $title = isset( $instance['title'] ) ? esc_attr( $instance['title'] ) : ''; 193 193 $number = isset( $instance['number'] ) ? absint( $instance['number'] ) : 10;
Note: See TracChangeset
for help on using the changeset viewer.