Changeset 5510 for trunk/wp-admin/admin-functions.php
- Timestamp:
- 05/22/2007 05:12:38 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/admin-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r5404 r5510 665 665 return false; 666 666 667 $tags = $wpdb->get_results( " 668 SELECT category_id, cat_name 669 FROM $wpdb->categories, $wpdb->post2cat 670 WHERE $wpdb->post2cat.category_id = cat_ID AND $wpdb->post2cat.post_id = '$post_id' AND rel_type = 'tag' 671 " ); 667 $tags = wp_get_post_tags($post_id); 668 672 669 if ( !$tags ) 673 670 return false; 674 671 675 672 foreach ( $tags as $tag ) 676 $tag_names[] = $tag-> cat_name;673 $tag_names[] = $tag->name; 677 674 $tags_to_edit = join( ', ', $tag_names ); 678 675 $tags_to_edit = attribute_escape( $tags_to_edit );
Note: See TracChangeset
for help on using the changeset viewer.