Changeset 6195
- Timestamp:
- 10/06/2007 06:55:24 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/export.php
r6156 r6195 182 182 <!-- contained in this file into your blog --> 183 183 184 < !-- generator="wordpress/<?php bloginfo_rss('version') ?>" created="<?php echo date('Y-m-d H:i'); ?>"-->184 <?php the_generator('export');?> 185 185 <rss version="2.0" 186 186 xmlns:content="http://purl.org/rss/1.0/modules/content/" -
trunk/wp-app.php
r6125 r6195 740 740 <link rel="self" type="<?php echo $this->ATOM_CONTENT_TYPE ?>" href="<?php $this->the_entries_url($self_page) ?>" /> 741 741 <rights type="text">Copyright <?php echo mysql2date('Y', get_lastpostdate('blog')); ?></rights> 742 < generator uri="http://wordpress.com/" version="1.0.5-dc">WordPress.com Atom API</generator>742 <?php the_generator( 'atom' ); ?> 743 743 <?php if ( have_posts() ) { 744 744 while ( have_posts() ) { -
trunk/wp-content/themes/classic/header.php
r4757 r6195 6 6 7 7 <title><?php bloginfo('name'); ?><?php wp_title(); ?></title> 8 9 <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats please -->10 8 11 9 <style type="text/css" media="screen"> -
trunk/wp-content/themes/default/header.php
r5062 r6195 6 6 7 7 <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title> 8 9 <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->10 8 11 9 <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> -
trunk/wp-includes/default-filters.php
r6192 r6195 142 142 add_action('wp_head', 'noindex', 1); 143 143 add_action('wp_head', 'wp_print_scripts'); 144 add_action('wp_head', 'wp_generator'); 144 145 if(!defined('DOING_CRON')) 145 146 add_action('init', 'wp_cron'); -
trunk/wp-includes/feed-atom-comments.php
r6026 r6195 19 19 20 20 <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastcommentmodified('GMT')); ?></updated> 21 < generator uri="http://wordpress.org/" version="<?php bloginfo('version'); ?>">WordPress</generator>21 <?php the_generator( 'atom' ); ?> 22 22 23 23 <link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php bloginfo_rss('home'); ?>" /> -
trunk/wp-includes/feed-atom.php
r6093 r6195 16 16 17 17 <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT')); ?></updated> 18 < generator uri="http://wordpress.org/" version="<?php bloginfo_rss('version'); ?>">WordPress</generator>18 <?php the_generator( 'atom' ); ?> 19 19 20 20 <link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" /> -
trunk/wp-includes/feed-rdf.php
r5910 r6195 5 5 ?> 6 6 <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> 7 <!-- generator="wordpress/<?php echo $wp_version ?>" -->8 7 <rdf:RDF 9 8 xmlns="http://purl.org/rss/1.0/" … … 20 19 <description><?php bloginfo_rss('description') ?></description> 21 20 <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></dc:date> 22 < admin:generatorAgent rdf:resource="http://wordpress.org/?v=<?php echo $wp_version ?>"/>21 <?php the_generator( 'rdf' ); ?> 23 22 <sy:updatePeriod>hourly</sy:updatePeriod> 24 23 <sy:updateFrequency>1</sy:updateFrequency> -
trunk/wp-includes/feed-rss.php
r5910 r6195 5 5 ?> 6 6 <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> 7 < !-- generator="wordpress/<?php echo $wp_version ?>" -->7 <?php the_generator( 'comment' ); ?> 8 8 <rss version="0.92"> 9 9 <channel> -
trunk/wp-includes/feed-rss2-comments.php
r6026 r6195 4 4 echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; 5 5 ?> 6 <!-- generator="wordpress/<?php echo $wp_version ?>" -->7 6 <rss version="2.0" 8 7 xmlns:content="http://purl.org/rss/1.0/modules/content/" … … 21 20 <description><?php bloginfo_rss("description") ?></description> 22 21 <pubDate><?php echo gmdate('r'); ?></pubDate> 23 < generator>http://wordpress.org/?v=<?php echo $wp_version ?></generator>22 <?php the_generator( 'rss2' ); ?> 24 23 <?php do_action('commentsrss2_head'); ?> 25 24 <?php -
trunk/wp-includes/feed-rss2.php
r5910 r6195 6 6 <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> 7 7 8 <!-- generator="wordpress/<?php bloginfo_rss('version') ?>" -->9 8 <rss version="2.0" 10 9 xmlns:content="http://purl.org/rss/1.0/modules/content/" … … 19 18 <description><?php bloginfo_rss("description") ?></description> 20 19 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></pubDate> 21 < generator>http://wordpress.org/?v=<?php bloginfo_rss('version'); ?></generator>20 <?php the_generator( 'rss2' ); ?> 22 21 <language><?php echo get_option('rss_language'); ?></language> 23 22 <?php do_action('rss2_head'); ?> -
trunk/wp-includes/general-template.php
r6192 r6195 1076 1076 } 1077 1077 1078 /** 1079 * Outputs the XHTML generator that is generated on the wp_head hook. 1080 */ 1081 function wp_generator() 1082 { 1083 the_generator( apply_filters( 'wp_generator_type', 'xhtml' ) ); 1084 } 1085 1086 /** 1087 * Outputs the generator XML or Comment for RSS, ATOM, etc. 1088 * @param {String} $type The type of generator to return. 1089 */ 1090 function the_generator ( $type ) { 1091 echo apply_filters('the_generator',get_the_generator($type),$type) . "\n"; 1092 } 1093 1094 /** 1095 * Creates the generator XML or Comment for RSS, ATOM, etc. 1096 * @param {String} $type The type of generator to return. 1097 */ 1098 function get_the_generator ( $type ) { 1099 switch ($type) { 1100 case 'html': 1101 $gen = '<meta name="generator" content="WordPress/' . get_bloginfo( 'version' ) . '">'; 1102 break; 1103 case 'xhtml': 1104 $gen = '<meta name="generator" content="WordPress/' . get_bloginfo( 'version' ) . '" />'; 1105 break; 1106 case 'atom': 1107 $gen = '<generator uri="http://wordpress.org/" version="' . get_bloginfo_rss( 'version' ) . '">WordPress</generator>'; 1108 break; 1109 case 'rss2': 1110 $gen = '<generator>http://wordpress.org/?v=' . get_bloginfo_rss( 'version' ) . '</generator>'; 1111 break; 1112 case 'rdf': 1113 $gen = '<admin:generatorAgent rdf:resource="http://wordpress.org/?v=' . get_bloginfo_rss( 'version' ) . '" />'; 1114 break; 1115 case 'comment': 1116 $gen = '<!-- generator="WordPress/' . get_bloginfo( 'version' ) . '" -->'; 1117 break; 1118 case 'export': 1119 $gen = '<!-- generator="wordpress/' . get_bloginfo_rss('version') . '" created="'. date('Y-m-d H:i') . '"-->'; 1120 break; 1121 } 1122 return apply_filters( "get_the_generator_{$type}", $gen, $type ); 1123 } 1078 1124 ?> -
trunk/wp-links-opml.php
r6160 r6195 15 15 } 16 16 ?><?php echo '<?xml version="1.0"?'.">\n"; ?> 17 < !-- generator="wordpress/<?php bloginfo_rss('version') ?>" -->17 <?php the_generator( 'comment' ); ?> 18 18 <opml version="1.0"> 19 19 <head>
Note: See TracChangeset
for help on using the changeset viewer.