Changeset 1160392
- Timestamp:
- 05/14/2015 12:12:50 PM (11 years ago)
- File:
-
- 1 edited
-
wp-stardate/trunk/stardate.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-stardate/trunk/stardate.php
r1160354 r1160392 88 88 } 89 89 } 90 91 90 92 91 function stardate_permalink($permalink, $post_id, $leavename) … … 226 225 $yy = (int)mysql2date('Y', $date) - 1900; 227 226 $mm = mysql2date('m', $date); 228 $stardate = sprintf("%s%s.%02s", $yy, $mm, mysql2date("d", $date)); 227 $stardate = sprintf("%s%s.%02s", $yy, $mm, mysql2date("d", $date)); 229 228 } 230 229 … … 276 275 } 277 276 } 278 279 277 280 278 function stardate_all_posts() … … 321 319 } 322 320 323 324 325 321 function stardate_deactivate() 326 322 { … … 347 343 wp_delete_term( $value, 'stardate' ); 348 344 } 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 */ 345 362 346 } 363 347
Note: See TracChangeset
for help on using the changeset viewer.