Changeset 1061
- Timestamp:
- 10/04/07 12:01:10 (1 year ago)
- Files:
-
- trunk/wp-content/mu-plugins/sync-taxonomy.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-content/mu-plugins/sync-taxonomy.php
r1060 r1061 28 28 function sync_link2cat( $link_id ) { 29 29 global $wpdb; 30 31 if ( get_option('db_version') != 6124 ) 32 return; 30 33 31 34 if( function_exists( 'get_term' ) ) { … … 67 70 global $wpdb; 68 71 72 if ( get_option('db_version') != 6124 ) 73 return; 74 69 75 if( function_exists( 'get_term' ) ) { 70 76 $wpdb->query( "DELETE FROM {$wpdb->post2cat} WHERE post_id = '{$post_id}'" ); … … 111 117 global $wpdb; 112 118 119 if ( get_option('db_version') != 6124 ) 120 return; 121 113 122 if( function_exists( 'get_term' ) ) { 114 123 $cat = $wpdb->get_row( "SELECT * FROM {$wpdb->terms}, {$wpdb->term_taxonomy} WHERE {$wpdb->terms}.term_id = {$wpdb->term_taxonomy}.term_id AND {$wpdb->term_taxonomy}.term_id = '$cat_ID'" ); … … 131 140 global $wpdb; 132 141 142 if ( get_option('db_version') != 6124 ) 143 return; 144 133 145 if( strpos( $_SERVER[ 'HTTP_REFERER' ], 'link-add.php' ) ) { 134 146 $taxonomy = 'link_category'; … … 157 169 global $wpdb; 158 170 171 if ( get_option('db_version') != 6124 ) 172 return; 173 159 174 if( function_exists( 'get_term' ) ) { 160 175 $wpdb->query( "DELETE FROM {$wpdb->categories} WHERE cat_ID = '$cat_ID'" ); … … 300 315 global $wpdb; 301 316 317 if ( get_option('db_version') != 6124 ) 318 return; 319 302 320 if( $global_id == $cat_ID ) 303 321 return; … … 312 330 global $wpdb, $blog_id; 313 331 332 if ( get_option('db_version') != 6124 ) 333 return; 334 314 335 $upgradetaxonomysecret = get_taxonomy_secret(); 315 336
