Make WordPress Core

Ticket #12495: 12495.diff

File 12495.diff, 1.0 KB (added by scribu, 15 years ago)

remove generator tags from default-filters.php

  • wp-includes/default-filters.php

     
    188188add_action( 'wp_head',             'noindex',                       1     );
    189189add_action( 'wp_head',             'wp_print_styles',               8     );
    190190add_action( 'wp_head',             'wp_print_head_scripts',         9     );
    191 add_action( 'wp_head',             'wp_generator'                         );
    192191add_action( 'wp_head',             'rel_canonical'                        );
    193192add_action( 'wp_footer',           'wp_print_footer_scripts'              );
    194193
    195 // Feed Generator Tags
    196 foreach ( array( 'rss2_head', 'commentsrss2_head', 'rss_head', 'rdf_header', 'atom_head', 'comments_atom_head', 'opml_head', 'app_head' ) as $action ) {
    197         add_action( $action, 'the_generator' );
    198 }
    199 
    200194// WP Cron
    201195if ( !defined( 'DOING_CRON' ) )
    202196        add_action( 'sanitize_comment_cookies', 'wp_cron' );