Skip to content

Commit

Permalink
add taxaonomy children flush when term removed
Browse files Browse the repository at this point in the history
  • Loading branch information
mospaw committed Apr 17, 2014
1 parent 254318e commit ccb540c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cf-tax-post-binding.php
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: http://crowdfavorite.com * Plugin URI: http://crowdfavorite.com
* Description: Provides extended functionality for taxonomies such as post meta and featured image * Description: Provides extended functionality for taxonomies such as post meta and featured image
* through creating a custom post type. * through creating a custom post type.
* Version: 1.1.2 * Version: 1.1.3
* Author: Crowd Favorite * Author: Crowd Favorite
* Author URI: http://crowdfavorite.com * Author URI: http://crowdfavorite.com
*/ */
Expand Down Expand Up @@ -476,6 +476,7 @@ public static function on_delete_term($term_id, $tt_id, $taxonomy) {
} }
else { else {
wp_delete_post($post->ID, true); wp_delete_post($post->ID, true);
delete_option($taxonomy.'_children');
} }
} }


Expand Down

0 comments on commit ccb540c

Please sign in to comment.