Ticket #27122: default-filters.diff
File default-filters.diff, 1.5 KB (added by , 11 years ago) |
---|
-
default-filters.php
247 247 add_action( 'init', 'smilies_init', 5 ); 248 248 add_action( 'plugins_loaded', 'wp_maybe_load_widgets', 0 ); 249 249 add_action( 'plugins_loaded', 'wp_maybe_load_embeds', 0 ); 250 add_action( 'shutdown', 'wp_ob_end_flush_all', 1 );251 250 add_action( 'post_updated', 'wp_save_post_revision', 10, 1 ); 252 251 add_action( 'publish_post', '_publish_post_hook', 5, 1 ); 253 252 add_action( 'transition_post_status', '_transition_post_status', 5, 3 ); … … 260 259 add_action( 'upgrader_scheduled_cleanup', 'wp_delete_attachment' ); 261 260 add_action( 'welcome_panel', 'wp_welcome_panel' ); 262 261 262 // Close the connection as soon as possible using fastcgi_finish_request if available 263 $flushFunction = function_exists('fastcgi_finish_request') ? 'fastcgi_finish_request' : 'wp_ob_end_flush_all'; 264 add_action( 'shutdown', $flushFunction, 1 ); 265 263 266 // Navigation menu actions 264 267 add_action( 'delete_post', '_wp_delete_post_menu_item' ); 265 268 add_action( 'delete_term', '_wp_delete_tax_menu_item', 10, 3 );