Changeset 1160354
- Timestamp:
- 05/14/2015 11:35:54 AM (11 years ago)
- File:
-
- 1 edited
-
wp-stardate/trunk/stardate.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-stardate/trunk/stardate.php
r1159122 r1160354 329 329 * 330 330 */ 331 332 if ( ! is_admin() ) 333 { 334 return; 335 } 336 331 337 delete_option('stardate_prefix'); 332 338 delete_option('stardate_style'); … … 336 342 337 343 unstardate_all_posts(); 344 345 $terms = get_terms( 'stardate', array( 'fields' => 'ids', 'hide_empty' => false ) ); 346 foreach ( $terms as $value ) { 347 wp_delete_term( $value, 'stardate' ); 348 } 349 /* 350 // Remove the taxonomies from the wordpress database!!! 351 $query = $wpdb->prepare(" 352 DELETE t.*, tt.* 353 FROM $wpdb->terms 354 AS t 355 INNER JOIN $wpdb->term_taxonomy 356 AS tt 357 ON t.term_id = tt.term_id 358 WHERE tt.taxonomy = 'stardate'"); 359 360 //$wpdb-> ${wpdb->terms} 361 */ 338 362 } 339 363
Note: See TracChangeset
for help on using the changeset viewer.