116
116
// Format text area for display.
117
foreach ( array( 'term_description' ) as $filter ) {
117
foreach ( array( 'term_description', 'get_the_author_description', 'get_the_post_type_description' ) as $filter ) {
118
118
add_filter( $filter, 'wptexturize' );
119
119
add_filter( $filter, 'convert_chars' );
120
120
add_filter( $filter, 'wpautop' );
169
169
add_filter( 'widget_text_content', 'wptexturize' );
170
170
add_filter( 'widget_text_content', 'convert_smilies', 20 );
171
171
add_filter( 'widget_text_content', 'wpautop' );
172
add_filter( 'widget_text_content', 'shortcode_unautop' );
173
add_filter( 'widget_text_content', 'do_shortcode', 11 ); // Runs after wpautop(); note that $post global will be null when shortcodes run.
173
175
add_filter( 'date_i18n', 'wp_maybe_decline_date' );
262
264
add_action( 'template_redirect', 'wp_shortlink_header', 11, 0 );
263
265
add_action( 'wp_print_footer_scripts', '_wp_footer_scripts' );
264
266
add_action( 'init', 'check_theme_switched', 99 );
267
add_action( 'after_switch_theme', '_wp_menus_changed' );
265
268
add_action( 'after_switch_theme', '_wp_sidebars_changed' );
266
269
add_action( 'wp_print_styles', 'print_emoji_styles' );
314
317
add_action( 'transition_post_status', '_transition_post_status', 5, 3 );
315
318
add_action( 'transition_post_status', '_update_term_count_on_transition_post_status', 10, 3 );
316
319
add_action( 'comment_form', 'wp_comment_form_unfiltered_html_nonce' );
317
add_action( 'wp_scheduled_delete', 'wp_scheduled_delete' );
318
add_action( 'wp_scheduled_auto_draft_delete', 'wp_delete_auto_drafts' );
319
320
add_action( 'admin_init', 'send_frame_options_header', 10, 0 );
320
add_action( 'importer_scheduled_cleanup', 'wp_delete_attachment' );
321
add_action( 'upgrader_scheduled_cleanup', 'wp_delete_attachment' );
322
321
add_action( 'welcome_panel', 'wp_welcome_panel' );
324
add_action( 'wp_scheduled_delete', 'wp_scheduled_delete' );
325
add_action( 'wp_scheduled_auto_draft_delete', 'wp_delete_auto_drafts' );
326
add_action( 'importer_scheduled_cleanup', 'wp_delete_attachment' );
327
add_action( 'upgrader_scheduled_cleanup', 'wp_delete_attachment' );
328
add_action( 'delete_expired_transients', 'delete_expired_transients' );
324
330
// Navigation menu actions
325
331
add_action( 'delete_post', '_wp_delete_post_menu_item' );
326
332
add_action( 'delete_term', '_wp_delete_tax_menu_item', 10, 3 );
511
517
add_filter( 'oembed_response_data', 'get_oembed_response_data_rich', 10, 4 );
512
518
add_filter( 'pre_oembed_result', 'wp_filter_pre_oembed_result', 10, 3 );
521
add_filter( 'user_has_cap', 'wp_maybe_grant_install_languages_cap', 1 );
514
523
unset( $filter, $action );