Unify generator strings
|Reported by:||docwhat||Owned by:||westi|
|Severity:||normal||Keywords:||privacy generator has-patch|
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
<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.
PS: This is related to bug #5065 in spirit.
Change History (19)
- Milestone changed from 2.5 to 2.4
- Owner changed from anonymous to docwhat
- Owner changed from docwhat to westi
- Status changed from new to assigned
- Resolution fixed deleted
- Status changed from closed to reopened
- Type changed from defect to enhancement
- Version set to 2.3