Make WordPress Core


Ignore:
Timestamp:
03/23/2008 05:02:11 PM (17 years ago)
Author:
ryan
Message:

Taxonomy queries and urls. Props andy. see #6357

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r7485 r7491  
    12261226add_action('admin_head_media_upload_library_form', 'media_admin_css');
    12271227
    1228 
    1229 register_taxonomy(
    1230     'image_tags',
    1231     'attachment:image',
    1232     array(
    1233         'label' => __('Tags'),
    1234         'template' => __('Tags: %l'),
    1235         'sort' => false,
    1236     )
    1237 );
    1238 
    1239 // Any 'attachment' taxonomy will be included in the description input form for the multi uploader
    1240 // Example:
    1241 /*
    1242 register_taxonomy(
    1243     'image_people',
    1244     'attachment:image',
    1245     array(
    1246         'label' => __('People'),
    1247         'template' => __('People: %l'),
    1248         'helps' => __('Left to right, top to bottom.'),
    1249         'sort' => true,
    1250         'args' => array(
    1251             'orderby' => 'term_order'
    1252         )
    1253     )
    1254 );
    1255 */
    1256 /*
    1257 register_taxonomy('movie_director', 'attachment:video', array('label'=>__('Directors'), 'template'=>__('Directed by %l.')));
    1258 register_taxonomy('movie_producer', 'attachment:video', array('label'=>__('Producers'), 'template'=>__('Produced by %l.')));
    1259 register_taxonomy('movie_screenwriter', 'attachment:video', array('label'=>__('Screenwriter'), 'template'=>__('Screenplay by %l.')));
    1260 register_taxonomy('movie_actor', 'attachment:video', array('label'=>__('Cast'), 'template'=>array(__('Cast: %l.')));
    1261 register_taxonomy('movie_crew', 'attachment:video', array('label'=>__('Crew'), 'template'=>array(__('Crew: %l.')));
    1262 */
    1263 
    12641228?>
Note: See TracChangeset for help on using the changeset viewer.