web/wp-includes/default-filters.php
changeset 204 09a1c134465b
parent 194 32102edaa81b
equal deleted inserted replaced
203:f507feede89a 204:09a1c134465b
   247 add_action( 'plugins_loaded',             'wp_maybe_load_widgets',                    0    );
   247 add_action( 'plugins_loaded',             'wp_maybe_load_widgets',                    0    );
   248 add_action( 'plugins_loaded',             'wp_maybe_load_embeds',                     0    );
   248 add_action( 'plugins_loaded',             'wp_maybe_load_embeds',                     0    );
   249 add_action( 'shutdown',                   'wp_ob_end_flush_all',                      1    );
   249 add_action( 'shutdown',                   'wp_ob_end_flush_all',                      1    );
   250 add_action( 'pre_post_update',            'wp_save_post_revision'                          );
   250 add_action( 'pre_post_update',            'wp_save_post_revision'                          );
   251 add_action( 'publish_post',               '_publish_post_hook',                       5, 1 );
   251 add_action( 'publish_post',               '_publish_post_hook',                       5, 1 );
   252 add_action( 'save_post',                  '_save_post_hook',                          5, 2 );
       
   253 add_action( 'transition_post_status',     '_transition_post_status',                  5, 3 );
   252 add_action( 'transition_post_status',     '_transition_post_status',                  5, 3 );
   254 add_action( 'transition_post_status',     '_update_term_count_on_transition_post_status', 10, 3 );
   253 add_action( 'transition_post_status',     '_update_term_count_on_transition_post_status', 10, 3 );
   255 add_action( 'comment_form',               'wp_comment_form_unfiltered_html_nonce'          );
   254 add_action( 'comment_form',               'wp_comment_form_unfiltered_html_nonce'          );
   256 add_action( 'wp_scheduled_delete',        'wp_scheduled_delete'                            );
   255 add_action( 'wp_scheduled_delete',        'wp_scheduled_delete'                            );
   257 add_action( 'wp_scheduled_auto_draft_delete', 'wp_delete_auto_drafts'                      );
   256 add_action( 'wp_scheduled_auto_draft_delete', 'wp_delete_auto_drafts'                      );
   258 add_action( 'admin_init',                 'send_frame_options_header',               10, 0 );
   257 add_action( 'admin_init',                 'send_frame_options_header',               10, 0 );
   259 add_action( 'importer_scheduled_cleanup', 'wp_delete_attachment'                           );
   258 add_action( 'importer_scheduled_cleanup', 'wp_delete_attachment'                           );
   260 add_action( 'upgrader_scheduled_cleanup', 'wp_delete_attachment'                           );
   259 add_action( 'upgrader_scheduled_cleanup', 'wp_delete_attachment'                           );
       
   260 add_action( 'welcome_panel',              'wp_welcome_panel'                               );
   261 
   261 
   262 // Navigation menu actions
   262 // Navigation menu actions
   263 add_action( 'delete_post',                '_wp_delete_post_menu_item'         );
   263 add_action( 'delete_post',                '_wp_delete_post_menu_item'         );
   264 add_action( 'delete_term',                '_wp_delete_tax_menu_item'          );
   264 add_action( 'delete_term',                '_wp_delete_tax_menu_item'          );
   265 add_action( 'transition_post_status',     '_wp_auto_add_pages_to_menu', 10, 3 );
   265 add_action( 'transition_post_status',     '_wp_auto_add_pages_to_menu', 10, 3 );
   280 
   280 
   281 // Admin Color Schemes
   281 // Admin Color Schemes
   282 add_action( 'admin_init', 'register_admin_color_schemes', 1);
   282 add_action( 'admin_init', 'register_admin_color_schemes', 1);
   283 add_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );
   283 add_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );
   284 
   284 
       
   285 // If the upgrade hasn't run yet, assume link manager is used.
       
   286 add_filter( 'default_option_link_manager_enabled', '__return_true' );
       
   287 
       
   288 // This option no longer exists; tell plugins we always support auto-embedding.
       
   289 add_filter( 'default_option_embed_autourls', '__return_true' );
       
   290 
   285 unset($filter, $action);
   291 unset($filter, $action);