Changeset 418 for branches/XPressMU/xpressme_integration_kit
- Timestamp:
- Oct 23, 2009, 8:56:12 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/XPressMU/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/popular_posts_block_theme.php
r272 r418 30 30 $db_prefix = get_wp_prefix(); 31 31 32 $post_tb = $ db_prefix . 'posts';32 $post_tb = $wpdb->posts; 33 33 $view_tb = $db_prefix . 'views'; 34 34 $user_tb = $db_prefix . 'users'; 35 35 36 $term_relationships_tb = $ db_prefix . 'term_relationships'; // upper 2.337 $term_taxonomy = $ db_prefix . 'term_taxonomy'; // upper 2.338 $terms_tb = $ db_prefix . 'terms'; // upper 2.339 40 $post2cat_tb = $ db_prefix . 'post2cat'; //under 2.341 $categories_tb = $ db_prefix . 'categories'; //under 2.336 $term_relationships_tb = $wpdb->term_relationships; // upper 2.3 37 $term_taxonomy = $wpdb->term_taxonomy; // upper 2.3 38 $terms_tb = $wpdb->terms; // upper 2.3 39 40 $post2cat_tb = $wpdb->post2cat; //under 2.3 41 $categories_tb = $wpdb->categories; //under 2.3 42 42 43 43 include ($mydirpath . '/wp-includes/version.php'); … … 198 198 } 199 199 200 201 202 $db_prefix = get_wp_prefix(); 203 $db_xpress_terms = $db_prefix . 'terms'; // upper 2.3 204 $db_xpress_term_taxonomy = $db_prefix . 'term_taxonomy'; // upper 2.3 200 $db_xpress_terms = $wpdb->terms; // upper 2.3 201 $db_xpress_term_taxonomy = $wpdb->term_taxonomy; // upper 2.3 202 205 203 $query = " 206 204 SELECT $db_xpress_terms.term_id as tag_ID
Note: See TracChangeset
for help on using the changeset viewer.