Changeset 619017
- Timestamp:
- 10/30/2012 02:16:58 PM (12 years ago)
- Location:
- cat-tag-filter-widget
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
cat-tag-filter-widget/tags/0.9/cat-tag-filter.php
r619000 r619017 235 235 } 236 236 237 static function install() { 238 //Ensure the $wp_rewrite global is loaded 239 global $wp_rewrite; 240 //Call flush_rules() as a method of the $wp_rewrite object 241 $wp_rewrite->flush_rules(); 242 } 237 243 238 244 /** @see WP_Widget::widget */ … … 287 293 $instance['category_tax'] = $new_instance['category_tax']; 288 294 $instance['tag_tax'] = $new_instance['tag_tax']; 295 global $wp_rewrite; 296 //Call flush_rules() as a method of the $wp_rewrite object 297 $wp_rewrite->flush_rules(); 289 298 return $instance; 290 299 } … … 467 476 add_action( 'generate_rewrite_rules', 'add_rewrite_rules' ); 468 477 469 478 register_activation_hook( 'cat-tag-filter-widget/cat-tag-filter.php', array('cat_tag_filter', 'install') ); 470 479 471 480 ?> -
cat-tag-filter-widget/tags/0.9/readme.txt
r619000 r619017 74 74 == Changelog == 75 75 76 = 0.9 =77 * Added permalink support.78 79 76 = 0.8.4 = 80 77 * Added an option to switch off corresponding tags mode. -
cat-tag-filter-widget/trunk/cat-tag-filter.php
r619000 r619017 235 235 } 236 236 237 static function install() { 238 //Ensure the $wp_rewrite global is loaded 239 global $wp_rewrite; 240 //Call flush_rules() as a method of the $wp_rewrite object 241 $wp_rewrite->flush_rules(); 242 } 237 243 238 244 /** @see WP_Widget::widget */ … … 287 293 $instance['category_tax'] = $new_instance['category_tax']; 288 294 $instance['tag_tax'] = $new_instance['tag_tax']; 295 global $wp_rewrite; 296 //Call flush_rules() as a method of the $wp_rewrite object 297 $wp_rewrite->flush_rules(); 289 298 return $instance; 290 299 } … … 467 476 add_action( 'generate_rewrite_rules', 'add_rewrite_rules' ); 468 477 469 478 register_activation_hook( 'cat-tag-filter-widget/cat-tag-filter.php', array('cat_tag_filter', 'install') ); 470 479 471 480 ?> -
cat-tag-filter-widget/trunk/readme.txt
r619000 r619017 74 74 == Changelog == 75 75 76 = 0.9 =77 * Added permalink support.78 79 76 = 0.8.4 = 80 77 * Added an option to switch off corresponding tags mode.
Note: See TracChangeset
for help on using the changeset viewer.