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:
<!-- generator="wordpress/2.3" -->
I need help figuring out an API for the various XML node formats, such
as:
<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.