equal
deleted
inserted
replaced
73 // Template. |
73 // Template. |
74 add_action( 'template_redirect', 'maybe_redirect_404' ); |
74 add_action( 'template_redirect', 'maybe_redirect_404' ); |
75 add_filter( 'allowed_redirect_hosts', 'redirect_this_site' ); |
75 add_filter( 'allowed_redirect_hosts', 'redirect_this_site' ); |
76 |
76 |
77 // Administration. |
77 // Administration. |
78 add_filter( 'term_id_filter', 'global_terms', 10, 2 ); |
78 add_action( 'after_delete_post', '_update_posts_count_on_delete', 10, 2 ); |
79 add_action( 'after_delete_post', '_update_posts_count_on_delete' ); |
|
80 add_action( 'delete_post', '_update_blog_date_on_post_delete' ); |
79 add_action( 'delete_post', '_update_blog_date_on_post_delete' ); |
81 add_action( 'transition_post_status', '_update_blog_date_on_post_publish', 10, 3 ); |
80 add_action( 'transition_post_status', '_update_blog_date_on_post_publish', 10, 3 ); |
82 add_action( 'transition_post_status', '_update_posts_count_on_transition_post_status', 10, 3 ); |
81 add_action( 'transition_post_status', '_update_posts_count_on_transition_post_status', 10, 3 ); |
83 |
82 |
84 // Counts. |
83 // Counts. |