[wp-trac] [WordPress Trac] #9546: Taxonomy - Reserved words - Questions ?

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 16 14:51:45 GMT 2009


#9546: Taxonomy - Reserved words - Questions ?
-----------------------------+----------------------------------------------
 Reporter:  michelwppi       |       Owner:  ryan                   
     Type:  feature request  |      Status:  new                    
 Priority:  high             |   Milestone:  Unassigned             
Component:  Taxonomy         |     Version:                         
 Severity:  normal           |    Keywords:  taxonomy reserved words
-----------------------------+----------------------------------------------
 Today, some words are reserved to build taxonomy - (''category'',
 ''post_tag'', ''link_category'')... and these taxonomies are essentially
 done for grouping posts as described at the top of taxonomy.php script in
 wp-includes folder.

 {{{
 $wp_taxonomies['category'] = (object) array('name' => 'category',
 'object_type' => 'post', 'hierarchical' => true, 'update_count_callback'
 => '_update_post_term_count');

 }}}

 To avoid future conflicts and database problems, is it possible to reserve
 another words in an official "registering catalog" ?

  Since 2.3, for plugins like [http://wordpress.org/extend/plugins/xili-
 language xili-language], '''language''' and '''dictionary''' are used.

 In lastest [http://wordpress.org/extend/plugins/xili-tidy-tags/ xili-tidy-
 tags] plugin, xili-tidy-tags taxonomy ('''xili_tidy_tags''') was created
 to build (thematic or lingual) groups of tags.
 So the second arg is term as here below :

 {{{
 /* add new taxonomy in available taxonomies */
                 register_taxonomy( TAXOTIDYTAGS,
 'term',array('hierarchical' => true, 'update_count_callback' => ''));
 }}}


 The default get_terms functions provided by wp cannot be used here because
 the target object is a term, it's why, a function -get_terms_of_groups-
 was added in the plugin like xili-tidy-tags

 get_terms_of_groups - line 947

 [http://plugins.trac.wordpress.org/browser/xili-tidy-tags/tags/0.9.1/xili-
 tidy-tags.php here-source]

 What will be happen if others use these words ?




 '''Suggestions for reserved taxonomy words:'''

 - prefix of four letters (like the unique ID of apps in mac os since his
 origin) attributed for a plugin developer when he open his account.
 (''prefix can also be used for constants'')

 - a registering catalog as domain name, first registered, first
 attributed,...

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


More information about the wp-trac mailing list