[wp-trac] [WordPress Trac] #5085: Unify generator strings

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 26 18:15:08 GMT 2007


#5085: Unify generator strings
---------------------+------------------------------------------------------
 Reporter:  docwhat  |       Owner:  anonymous
     Type:  defect   |      Status:  new      
 Priority:  normal   |   Milestone:  2.5      
Component:  General  |     Version:           
 Severity:  normal   |    Keywords:           
---------------------+------------------------------------------------------
 In WordPress 2.3, there are about a dozen plus places that use a
 generator comment or a generator XML element.

 I would like to suggest adding an API for building the generator
 interfaces.  However, to me, the only obvious (and consistent)
 generator string is the XML comment.

 wp_generator_comment() would generate an XML comment such as:
 {{{
 #!xml
 <!-- generator="wordpress/2.3" -->
 }}}

 I need help figuring out an API for the various XML node formats, such
 as:
 {{{
 #!xml
 <generator uri="http://wordpress.com/" version="1.0.5-dc">WordPress.com
 Atom API</generator>
 <generator>http://wordpress.org/?v=<?php bloginfo_rss('version');
 ?></generator>
 <generator>http://wordpress.org/?v=<?php echo $wp_version ?></generator>
 <generator uri="http://wordpress.org/" version="<?php
 bloginfo_rss('version'); ?>">WordPress</generator>
 <generator uri="http://wordpress.org/" version="<?php bloginfo('version');
 ?>">WordPress</generator>
 <admin:generatorAgent rdf:resource="http://wordpress.org/?v=<?php echo
 $wp_version ?>"/>
 }}}

 Tracing through the code I couldn't easily tell what bloginfo_rss
 returns, I assume it returns $wp_version;

 This would prevent repetition of code and allow for admins or plugin
 developers to add or remove information they are not comfortable sending
 out.

 Ciao!

 PS: This is related to bug #5065 in spirit.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5085>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list