Ticket #6947: 6947.2.diff
| File 6947.2.diff, 6.7 KB (added by , 16 years ago) |
|---|
-
wp-app.php
1096 1096 <link rel="last" type="<?php echo $this->ATOM_CONTENT_TYPE ?>" href="<?php $this->the_entries_url($last_page) ?>" /> 1097 1097 <link rel="self" type="<?php echo $this->ATOM_CONTENT_TYPE ?>" href="<?php $this->the_entries_url($self_page) ?>" /> 1098 1098 <rights type="text">Copyright <?php echo date('Y'); ?></rights> 1099 <?php the_generator( 'atom' ); ?>1100 1099 <?php do_action('app_head'); ?> 1101 1100 <?php if ( have_posts() ) { 1102 1101 while ( have_posts() ) { -
wp-includes/feed-rss2.php
26 26 <link><?php bloginfo_rss('url') ?></link> 27 27 <description><?php bloginfo_rss("description") ?></description> 28 28 <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate> 29 <?php the_generator( 'rss2' ); ?>30 29 <language><?php echo get_option('rss_language'); ?></language> 31 30 <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod> 32 31 <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency> -
wp-includes/default-filters.php
185 185 add_action( 'wp_head', 'rel_canonical' ); 186 186 add_action( 'wp_footer', 'wp_print_footer_scripts' ); 187 187 188 // Feed Generator Tags 189 foreach ( 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 } 192 188 193 // WP Cron 189 194 if ( !defined( 'DOING_CRON' ) ) 190 195 add_action( 'sanitize_comment_cookies', 'wp_cron' ); -
wp-includes/feed-atom.php
20 20 <subtitle type="text"><?php bloginfo_rss("description") ?></subtitle> 21 21 22 22 <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></updated> 23 <?php the_generator( 'atom' ); ?>24 23 25 24 <link rel="alternate" type="text/html" href="<?php bloginfo_rss('url') ?>" /> 26 25 <id><?php bloginfo('atom_url'); ?></id> -
wp-includes/feed-rss.php
9 9 $more = 1; 10 10 11 11 echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> 12 <?php the_generator( 'comment' ); ?>13 12 <rss version="0.92"> 14 13 <channel> 15 14 <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title> -
wp-includes/feed-rdf.php
23 23 <link><?php bloginfo_rss('url') ?></link> 24 24 <description><?php bloginfo_rss('description') ?></description> 25 25 <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></dc:date> 26 <?php the_generator( 'rdf' ); ?>27 26 <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod> 28 27 <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency> 29 28 <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase> -
wp-includes/feed-atom-comments.php
25 25 <subtitle type="text"><?php bloginfo_rss('description'); ?></subtitle> 26 26 27 27 <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastcommentmodified('GMT'), false); ?></updated> 28 <?php the_generator( 'atom' ); ?>29 28 30 29 <?php if ( is_singular() ) { ?> 31 30 <link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php echo get_comments_link(); ?>" /> -
wp-includes/feed-rss2-comments.php
29 29 <link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link> 30 30 <description><?php bloginfo_rss("description") ?></description> 31 31 <lastBuildDate><?php echo mysql2date('r', get_lastcommentmodified('GMT')); ?></lastBuildDate> 32 <?php the_generator( 'rss2' ); ?>33 32 <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod> 34 33 <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency> 35 34 <?php do_action('commentsrss2_head'); ?> -
wp-includes/general-template.php
2130 2130 * @param string $type The type of generator to return - (html|xhtml|atom|rss2|rdf|comment|export). 2131 2131 * @return string The HTML content for the generator. 2132 2132 */ 2133 function get_the_generator( $type ) { 2134 switch ($type) { 2133 function get_the_generator( $type = '' ) { 2134 if ( empty( $type ) ) { 2135 2136 $current_filter = current_filter(); 2137 if ( empty( $current_filter ) ) 2138 return; 2139 2140 switch ( $current_filter ) { 2141 case 'rss2_head' : 2142 case 'commentsrss2_head' : 2143 $type = 'rss2'; 2144 break; 2145 case 'rss_head' : 2146 case 'opml_head' : 2147 $type = 'comment'; 2148 break; 2149 case 'rdf_header' : 2150 $type = 'rdf'; 2151 break; 2152 case 'atom_head' : 2153 case 'comments_atom_head' : 2154 case 'app_head' : 2155 $type = 'atom'; 2156 break; 2157 } 2158 2159 } 2160 2161 switch ( $type ) { 2135 2162 case 'html': 2136 2163 $gen = '<meta name="generator" content="WordPress ' . get_bloginfo( 'version' ) . '">'; 2137 2164 break; -
wp-links-opml.php
26 26 $link_cat = intval($link_cat); 27 27 } 28 28 ?><?php echo '<?xml version="1.0"?'.">\n"; ?> 29 <?php the_generator( 'comment' ); ?>30 29 <opml version="1.0"> 31 30 <head> 32 31 <title>Links for <?php echo esc_attr(get_bloginfo('name', 'display').$cat_name); ?></title> 33 32 <dateCreated><?php echo gmdate("D, d M Y H:i:s"); ?> GMT</dateCreated> 33 <?php do_action('opml_head'); ?> 34 34 </head> 35 35 <body> 36 36 <?php