Make WordPress Core


Ignore:
Timestamp:
09/16/2007 02:36:23 AM (17 years ago)
Author:
ryan
Message:

Don't lose tags when saving a post with attachments. Props filosofo. fixes #4532

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r6118 r6121  
    869869    else if ( 'ids' == $fields )
    870870        $select_this = 't.term_id';
     871    else if ( 'names' == $fields )
     872        $select_this = 't.name';
    871873    else if ( 'all_with_object_id' == $fields )
    872874        $select_this = 't.*, tt.*, tr.object_id';
     
    877879        $terms = $wpdb->get_results($query);
    878880        update_term_cache($terms);
    879     } else if ( 'ids' == $fields ) {
     881    } else if ( 'ids' == $fields || 'names' == $fields ) {
    880882        $terms = $wpdb->get_col($query);
    881883    } else if ( 'tt_ids' == $fields ) {
Note: See TracChangeset for help on using the changeset viewer.