- Timestamp:
- 12/03/2013 06:53:39 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/inc/widgets.php
r26577 r26580 59 59 'gallery' => __( 'Galleries', 'twentyfourteen' ), 60 60 ); 61 62 add_action( 'save_post', array( $this, 'flush_widget_cache' ) );63 add_action( 'deleted_post', array( $this, 'flush_widget_cache' ) );64 add_action( 'switch_theme', array( $this, 'flush_widget_cache' ) );65 61 } 66 62 … … 222 218 } 223 219 224 $this->flush_widget_cache();225 226 220 return $instance; 227 }228 229 /**230 * Delete the transient.231 *232 * @since Twenty Fourteen 1.0233 *234 * @return void235 */236 function flush_widget_cache() {237 delete_transient( $this->id );238 221 } 239 222
Note: See TracChangeset
for help on using the changeset viewer.