Changeset 6285 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 10/23/2007 04:43:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r6284 r6285 1046 1046 } else { 1047 1047 // The alias isn't in a group, so let's create a new one and firstly add the alias term to it. 1048 $term_group = $wpdb->get_var("SELECT MAX(term_group) FROM $wpdb->terms GROUP BY term_group") + 1;1048 $term_group = $wpdb->get_var("SELECT MAX(term_group) FROM $wpdb->terms") + 1; 1049 1049 $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->terms SET term_group = %d WHERE term_id = %d", $term_group, $alias->term_id ) ); 1050 1050 } … … 1256 1256 } else { 1257 1257 // The alias isn't in a group, so let's create a new one and firstly add the alias term to it. 1258 $term_group = $wpdb->get_var("SELECT MAX(term_group) FROM $wpdb->terms GROUP BY term_group") + 1;1258 $term_group = $wpdb->get_var("SELECT MAX(term_group) FROM $wpdb->terms") + 1; 1259 1259 $wpdb->update( $wpdb->terms, compact('term_group'), array( 'term_id' => $alias->term_id ) ); 1260 1260 }
Note: See TracChangeset
for help on using the changeset viewer.