Changeset 915438
- Timestamp:
- 05/16/2014 09:34:19 AM (12 years ago)
- Location:
- mu-central-taxonomies/trunk
- Files:
-
- 2 edited
-
mu-central-taxonomies.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mu-central-taxonomies/trunk/mu-central-taxonomies.php
r452774 r915438 10 10 */ 11 11 12 add_action('init', 'central_taxonomies'); 13 add_action('switch_blog', 'central_taxonomies'); 14 function central_taxonomies () { 12 if (!defined('MU_CENTRAL_TAXONOMIES_DEBUG')) 13 define('MU_CENTRAL_TAXONOMIES_DEBUG', false); 14 15 if (MU_CENTRAL_TAXONOMIES_DEBUG) do_action('log', 'Central taxonomies: Init', $wpdb); 16 add_action('muplugins_loaded', 'mu_central_taxonomies'); 17 add_action('plugins_loaded', 'mu_central_taxonomies'); 18 add_action('init', 'mu_central_taxonomies'); 19 add_action('wp_loaded', 'mu_central_taxonomies'); 20 add_action('switch_blog', 'mu_central_taxonomies'); 21 add_action('template_redirect', 'mu_central_taxonomies'); 22 function mu_central_taxonomies () { 15 23 global $wpdb; 16 24 17 $wpdb->terms = $wpdb->prefix."terms"; 18 $wpdb->term_taxonomy = $wpdb->prefix."term_taxonomy"; 25 $prefix = $wpdb->base_prefix; 26 $wpdb->terms = $prefix."terms"; 27 $wpdb->term_taxonomy = $prefix."term_taxonomy"; 28 if (MU_CENTRAL_TAXONOMIES_DEBUG) do_action('log', 'Central taxonomies', '!prefix,terms,term_relationships,term_taxonomy', $wpdb); 19 29 } -
mu-central-taxonomies/trunk/readme.txt
r452767 r915438 3 3 Tags: multisite, custom, taxonomies 4 4 Requires at least: 3.1 5 Tested up to: 3. 2.15 Tested up to: 3.9.1 6 6 Stable tag: trunk 7 7
Note: See TracChangeset
for help on using the changeset viewer.