WordPress.org

Make WordPress Core

Ticket #9416: 9416.1.diff

File 9416.1.diff, 2.7 KB (added by sivel, 9 years ago)
  • wp-includes/default-filters.php

     
    149149add_filter('tiny_mce_before_init', '_mce_set_direction');
    150150add_filter('pre_kses', 'wp_pre_kses_less_than');
    151151add_filter('sanitize_title', 'sanitize_title_with_dashes');
     152add_filter('wp_unique_filename', 'sanitize_title_with_dashes');
    152153add_action('check_comment_flood', 'check_comment_flood_db', 10, 3);
    153154add_filter('comment_flood_filter', 'wp_throttle_comment_flood', 10, 3);
    154155add_filter('pre_comment_content', 'wp_rel_nofollow', 15);
    155156add_filter('comment_email', 'antispambot');
    156157add_filter('option_tag_base', '_wp_filter_taxonomy_base');
    157158add_filter('option_category_base', '_wp_filter_taxonomy_base');
    158 add_filter( 'the_posts', '_close_comments_for_old_posts' );
    159 add_filter( 'comments_open', '_close_comments_for_old_post', 10, 2 );
    160 add_filter( 'pings_open', '_close_comments_for_old_post', 10, 2 );
    161 add_filter( 'editable_slug', 'urldecode' );
     159add_filter('the_posts', '_close_comments_for_old_posts');
     160add_filter('comments_open', '_close_comments_for_old_post', 10, 2);
     161add_filter('pings_open', '_close_comments_for_old_post', 10, 2);
     162add_filter('editable_slug', 'urldecode');
    162163
    163164// Atom SSL support
    164165add_filter('atom_service_url','atom_service_url_filter');
     
    192193add_action('admin_print_footer_scripts', 'print_footer_scripts', 20);
    193194add_action('admin_print_styles', 'print_admin_styles', 20);
    194195add_action('init', 'smilies_init', 5);
    195 add_action( 'plugins_loaded', 'wp_maybe_load_widgets', 0 );
    196 add_action( 'shutdown', 'wp_ob_end_flush_all', 1);
    197 add_action( 'pre_post_update', 'wp_save_post_revision' );
     196add_action('plugins_loaded', 'wp_maybe_load_widgets', 0);
     197add_action('shutdown', 'wp_ob_end_flush_all', 1);
     198add_action('pre_post_update', 'wp_save_post_revision');
    198199add_action('publish_post', '_publish_post_hook', 5, 1);
    199200add_action('future_post', '_future_post_hook', 5, 2);
    200201add_action('future_page', '_future_post_hook', 5, 2);
  • wp-includes/functions.php

     
    20202020
    20212021                $filename = str_replace( $ext, '', $filename );
    20222022                // Strip % so the server doesn't try to decode entities.
    2023                 $filename = str_replace('%', '', sanitize_title_with_dashes( $filename ) ) . $ext;
     2023                $filename = str_replace('%', '', $filename ) . $ext;
     2024                $filename = apply_filters('wp_unique_filename', $filename);
    20242025
    20252026                while ( file_exists( $dir . "/$filename" ) ) {
    20262027                        if ( '' == "$number$ext" )