Changeset 10557 for trunk/wp-admin/admin-ajax.php
- Timestamp:
- 02/12/2009 08:00:29 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/admin-ajax.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r10555 r10557 1084 1084 break; 1085 1085 case 'tag' : 1086 $updated = wp_update_term($id, 'post_tag', $_POST); 1086 if ( !empty($_POST['taxonomy']) ) 1087 $taxonomy = $_POST['taxonomy']; 1088 else 1089 $taxonomy = 'post_tag'; 1090 1091 $updated = wp_update_term($id, $taxonomy, $_POST); 1087 1092 if ( $updated && !is_wp_error($updated) ) { 1088 $tag = get_term( $updated['term_id'], 'post_tag');1093 $tag = get_term( $updated['term_id'], $taxonomy ); 1089 1094 if ( !$tag || is_wp_error( $tag ) ) 1090 1095 die( __('Tag not updated.') );
Note: See TracChangeset
for help on using the changeset viewer.