Make WordPress Core


Ignore:
Timestamp:
08/24/2011 10:59:06 AM (12 years ago)
Author:
westi
Message:

Whitespace and code layout tidyup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-filters.php

    r18592 r18593  
    177177
    178178// Misc filters
    179 add_filter( 'option_ping_sites',    'privacy_ping_filter'                 );
    180 add_filter( 'option_blog_charset',  '_wp_specialchars'                    ); // IMPORTANT: This must not be wp_specialchars() or esc_html() or it'll cause an infinite loop
    181 add_filter( 'option_home',          '_config_wp_home'                     );
    182 add_filter( 'option_siteurl',       '_config_wp_siteurl'                  );
    183 add_filter( 'tiny_mce_before_init', '_mce_set_direction'                  );
    184 add_filter( 'pre_kses',             'wp_pre_kses_less_than'               );
    185 add_filter( 'sanitize_title',       'sanitize_title_with_dashes'          );
    186 add_action( 'check_comment_flood',  'check_comment_flood_db',       10, 3 );
    187 add_filter( 'comment_flood_filter', 'wp_throttle_comment_flood',    10, 3 );
    188 add_filter( 'pre_comment_content',  'wp_rel_nofollow',              15    );
    189 add_filter( 'comment_email',        'antispambot'                         );
    190 add_filter( 'option_tag_base',      '_wp_filter_taxonomy_base'            );
    191 add_filter( 'option_category_base', '_wp_filter_taxonomy_base'            );
    192 add_filter( 'the_posts',            '_close_comments_for_old_posts'       );
    193 add_filter( 'comments_open',        '_close_comments_for_old_post', 10, 2 );
    194 add_filter( 'pings_open',           '_close_comments_for_old_post', 10, 2 );
    195 add_filter( 'editable_slug',        'urldecode'                           );
    196 add_filter( 'nav_menu_meta_box_object', '_wp_nav_menu_meta_box_object'    );
    197 add_filter( 'widget_text',          'shortcode_unautop'                   );
    198 add_filter( 'widget_text',          'do_shortcode'                        );
     179add_filter( 'option_ping_sites',        'privacy_ping_filter'                 );
     180add_filter( 'option_blog_charset',      '_wp_specialchars'                    ); // IMPORTANT: This must not be wp_specialchars() or esc_html() or it'll cause an infinite loop
     181add_filter( 'option_home',              '_config_wp_home'                     );
     182add_filter( 'option_siteurl',           '_config_wp_siteurl'                  );
     183add_filter( 'tiny_mce_before_init',     '_mce_set_direction'                  );
     184add_filter( 'pre_kses',                 'wp_pre_kses_less_than'               );
     185add_filter( 'sanitize_title',           'sanitize_title_with_dashes'          );
     186add_action( 'check_comment_flood',      'check_comment_flood_db',       10, 3 );
     187add_filter( 'comment_flood_filter',     'wp_throttle_comment_flood',    10, 3 );
     188add_filter( 'pre_comment_content',      'wp_rel_nofollow',              15    );
     189add_filter( 'comment_email',            'antispambot'                         );
     190add_filter( 'option_tag_base',          '_wp_filter_taxonomy_base'            );
     191add_filter( 'option_category_base',     '_wp_filter_taxonomy_base'            );
     192add_filter( 'the_posts',                '_close_comments_for_old_posts'       );
     193add_filter( 'comments_open',            '_close_comments_for_old_post', 10, 2 );
     194add_filter( 'pings_open',               '_close_comments_for_old_post', 10, 2 );
     195add_filter( 'editable_slug',            'urldecode'                           );
     196add_filter( 'nav_menu_meta_box_object', '_wp_nav_menu_meta_box_object'        );
     197add_filter( 'widget_text',              'shortcode_unautop'                   );
     198add_filter( 'widget_text',              'do_shortcode'                        );
    199199
    200200// Actions
    201 add_action( 'wp_head',             'wp_enqueue_scripts',            1     );
    202 add_action( 'wp_head',             'feed_links',                    2     );
    203 add_action( 'wp_head',             'feed_links_extra',              3     );
    204 add_action( 'wp_head',             'rsd_link'                             );
    205 add_action( 'wp_head',             'wlwmanifest_link'                     );
    206 add_action( 'wp_head',             'index_rel_link'                       );
    207 add_action( 'wp_head',             'parent_post_rel_link',          10, 0 );
    208 add_action( 'wp_head',             'start_post_rel_link',           10, 0 );
     201add_action( 'wp_head',             'wp_enqueue_scripts',              1     );
     202add_action( 'wp_head',             'feed_links',                      2     );
     203add_action( 'wp_head',             'feed_links_extra',                3     );
     204add_action( 'wp_head',             'rsd_link'                               );
     205add_action( 'wp_head',             'wlwmanifest_link'                       );
     206add_action( 'wp_head',             'index_rel_link'                         );
     207add_action( 'wp_head',             'parent_post_rel_link',            10, 0 );
     208add_action( 'wp_head',             'start_post_rel_link',             10, 0 );
    209209add_action( 'wp_head',             'adjacent_posts_rel_link_wp_head', 10, 0 );
    210 add_action( 'wp_head',             'locale_stylesheet'                    );
    211 add_action( 'publish_future_post', 'check_and_publish_future_post', 10, 1 );
    212 add_action( 'wp_head',             'noindex',                       1     );
    213 add_action( 'wp_head',             'wp_print_styles',               8     );
    214 add_action( 'wp_head',             'wp_print_head_scripts',         9     );
    215 add_action( 'wp_head',             'wp_generator'                         );
    216 add_action( 'wp_head',             'rel_canonical'                        );
    217 add_action( 'wp_footer',           'wp_print_footer_scripts'              );
    218 add_action( 'wp_head',             'wp_shortlink_wp_head',          10, 0 );
    219 add_action( 'template_redirect',   'wp_shortlink_header',           11, 0 );
     210add_action( 'wp_head',             'locale_stylesheet'                      );
     211add_action( 'publish_future_post', 'check_and_publish_future_post',   10, 1 );
     212add_action( 'wp_head',             'noindex',                          1    );
     213add_action( 'wp_head',             'wp_print_styles',                  8    );
     214add_action( 'wp_head',             'wp_print_head_scripts',            9    );
     215add_action( 'wp_head',             'wp_generator'                           );
     216add_action( 'wp_head',             'rel_canonical'                          );
     217add_action( 'wp_footer',           'wp_print_footer_scripts'                );
     218add_action( 'wp_head',             'wp_shortlink_wp_head',            10, 0 );
     219add_action( 'template_redirect',   'wp_shortlink_header',             11, 0 );
    220220
    221221if ( isset( $_GET['replytocom'] ) )
     
    237237
    238238// 2 Actions 2 Furious
    239 add_action( 'do_feed_rdf',                'do_feed_rdf',             10, 1 );
    240 add_action( 'do_feed_rss',                'do_feed_rss',             10, 1 );
    241 add_action( 'do_feed_rss2',               'do_feed_rss2',            10, 1 );
    242 add_action( 'do_feed_atom',               'do_feed_atom',            10, 1 );
    243 add_action( 'do_pings',                   'do_all_pings',            10, 1 );
    244 add_action( 'do_robots',                  'do_robots'                      );
    245 add_action( 'sanitize_comment_cookies',   'sanitize_comment_cookies'       );
    246 add_action( 'admin_print_scripts',        'print_head_scripts',      20    );
    247 add_action( 'admin_print_footer_scripts', 'wp_print_footer_scripts', 20    );
    248 add_action( 'admin_print_styles',         'print_admin_styles',      20    );
    249 add_action( 'init',                       'smilies_init',             5    );
    250 add_action( 'plugins_loaded',             'wp_maybe_load_widgets',    0    );
    251 add_action( 'plugins_loaded',             'wp_maybe_load_embeds',     0    );
    252 add_action( 'shutdown',                   'wp_ob_end_flush_all',      1    );
    253 add_action( 'pre_post_update',            'wp_save_post_revision'          );
    254 add_action( 'publish_post',               '_publish_post_hook',       5, 1 );
    255 add_action( 'save_post',                  '_save_post_hook',          5, 2 );
    256 add_action( 'transition_post_status',     '_transition_post_status',  5, 3 );
    257 add_action( 'comment_form', 'wp_comment_form_unfiltered_html_nonce'        );
    258 add_action( 'wp_scheduled_delete',        'wp_scheduled_delete'            );
    259 add_action( 'admin_init',                 'send_frame_options_header', 10, 0 );
    260 add_action( 'importer_scheduled_cleanup', 'wp_delete_attachment'           );
     239add_action( 'do_feed_rdf',                'do_feed_rdf',                             10, 1 );
     240add_action( 'do_feed_rss',                'do_feed_rss',                             10, 1 );
     241add_action( 'do_feed_rss2',               'do_feed_rss2',                            10, 1 );
     242add_action( 'do_feed_atom',               'do_feed_atom',                            10, 1 );
     243add_action( 'do_pings',                   'do_all_pings',                            10, 1 );
     244add_action( 'do_robots',                  'do_robots'                                      );
     245add_action( 'sanitize_comment_cookies',   'sanitize_comment_cookies'                       );
     246add_action( 'admin_print_scripts',        'print_head_scripts',                      20    );
     247add_action( 'admin_print_footer_scripts', 'wp_print_footer_scripts',                 20    );
     248add_action( 'admin_print_styles',         'print_admin_styles',                      20    );
     249add_action( 'init',                       'smilies_init',                             5    );
     250add_action( 'plugins_loaded',             'wp_maybe_load_widgets',                    0    );
     251add_action( 'plugins_loaded',             'wp_maybe_load_embeds',                     0    );
     252add_action( 'shutdown',                   'wp_ob_end_flush_all',                      1    );
     253add_action( 'pre_post_update',            'wp_save_post_revision'                          );
     254add_action( 'publish_post',               '_publish_post_hook',                       5, 1 );
     255add_action( 'save_post',                  '_save_post_hook',                          5, 2 );
     256add_action( 'transition_post_status',     '_transition_post_status',                  5, 3 );
     257add_action( 'comment_form',               'wp_comment_form_unfiltered_html_nonce'          );
     258add_action( 'wp_scheduled_delete',        'wp_scheduled_delete'                            );
     259add_action( 'admin_init',                 'send_frame_options_header',               10, 0 );
     260add_action( 'importer_scheduled_cleanup', 'wp_delete_attachment'                           );
    261261
    262262// Navigation menu actions
    263 add_action( 'delete_post',                '_wp_delete_post_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 );
     263add_action( 'delete_post',                '_wp_delete_post_menu_item'         );
     264add_action( 'delete_term',                '_wp_delete_tax_menu_item'          );
     265add_action( 'transition_post_status',     '_wp_auto_add_pages_to_menu', 10, 3 );
    266266
    267267// Post Thumbnail CSS class filtering
Note: See TracChangeset for help on using the changeset viewer.