Plugin Directory

Changeset 915438


Ignore:
Timestamp:
05/16/2014 09:34:19 AM (12 years ago)
Author:
marcus.downing
Message:

Tested up to latest

Location:
mu-central-taxonomies/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mu-central-taxonomies/trunk/mu-central-taxonomies.php

    r452774 r915438  
    1010*/
    1111
    12 add_action('init', 'central_taxonomies');
    13 add_action('switch_blog', 'central_taxonomies');
    14 function central_taxonomies () {
     12if (!defined('MU_CENTRAL_TAXONOMIES_DEBUG'))
     13  define('MU_CENTRAL_TAXONOMIES_DEBUG', false);
     14
     15if (MU_CENTRAL_TAXONOMIES_DEBUG) do_action('log', 'Central taxonomies: Init', $wpdb);
     16add_action('muplugins_loaded', 'mu_central_taxonomies');
     17add_action('plugins_loaded', 'mu_central_taxonomies');
     18add_action('init', 'mu_central_taxonomies');
     19add_action('wp_loaded', 'mu_central_taxonomies');
     20add_action('switch_blog', 'mu_central_taxonomies');
     21add_action('template_redirect', 'mu_central_taxonomies');
     22function mu_central_taxonomies () {
    1523  global $wpdb;
    1624
    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);
    1929}
  • mu-central-taxonomies/trunk/readme.txt

    r452767 r915438  
    33Tags: multisite, custom, taxonomies
    44Requires at least: 3.1
    5 Tested up to: 3.2.1
     5Tested up to: 3.9.1
    66Stable tag: trunk
    77
Note: See TracChangeset for help on using the changeset viewer.