Changeset 14619 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 05/14/2010 02:13:49 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/taxonomy.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r14614 r14619 211 211 * 212 212 * Optional $args contents: 213 * 214 * label - Name of the taxonomy shown in the menu. Usually plural. If not set, labels['name'] will be used. 213 215 * 214 216 * hierarchical - has some defined purpose at other parts of the API and is a … … 298 300 $args['name'] = $taxonomy; 299 301 $args['object_type'] = (array) $object_type; 302 300 303 $args['labels'] = get_taxonomy_labels( (object) $args ); 301 302 // we keep these two only for backwards compatibility303 // TODO: remove in 3.1304 304 $args['label'] = $args['labels']->name; 305 $args['singular_label'] = $args['labels']->singular_name;306 305 307 306 $wp_taxonomies[$taxonomy] = (object) $args; … … 315 314 * 316 315 * Accepted keys of the label array in the taxonomy object: 317 * - name - general name for the taxonomy, usually plural. Default is Post Tags/Categories316 * - name - general name for the taxonomy, usually plural. The same as and overriden by $tax->label. Default is Post Tags/Categories 318 317 * - singular_name - name for one object of this taxonomy. Default is Post Tag/Category 319 318 * - search_items - Default is Search Tags/Search Categories
Note: See TracChangeset
for help on using the changeset viewer.