Make WordPress Core


Ignore:
Timestamp:
02/13/2010 04:45:16 PM (16 years ago)
Author:
westi
Message:

Add the generator element in feeds through the {rss2|atom|rdf|rss|opml}_head hooks. Fixes #6947 props sivel.

File:
1 edited

Legend:

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

    r12982 r13113  
    185185add_action( 'wp_head',             'rel_canonical'                        );
    186186add_action( 'wp_footer',           'wp_print_footer_scripts'              );
     187
     188// Feed Generator Tags
     189foreach ( array( 'rss2_head', 'commentsrss2_head', 'rss_head', 'rdf_header', 'atom_head', 'comments_atom_head', 'opml_head', 'app_head' ) as $action ) {
     190    add_action( $action, 'the_generator' );
     191}
    187192
    188193// WP Cron
Note: See TracChangeset for help on using the changeset viewer.