Plugin Directory

Changeset 1160392


Ignore:
Timestamp:
05/14/2015 12:12:50 PM (11 years ago)
Author:
doddo
Message:

some clean up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-stardate/trunk/stardate.php

    r1160354 r1160392  
    8888    }
    8989}
    90 
    9190
    9291function stardate_permalink($permalink, $post_id, $leavename)
     
    226225        $yy = (int)mysql2date('Y', $date) - 1900;
    227226        $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));
    229228    }
    230229
     
    276275    }
    277276}
    278 
    279277
    280278function stardate_all_posts()
     
    321319}
    322320
    323 
    324 
    325321function stardate_deactivate()
    326322{
     
    347343        wp_delete_term( $value, 'stardate' );
    348344    }
    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
    362346}
    363347
Note: See TracChangeset for help on using the changeset viewer.