Make WordPress Core


Ignore:
Timestamp:
03/16/2010 05:17:55 PM (15 years ago)
Author:
wpmuguru
Message:

first pass on optional global terms, see #12589

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r13677 r13715  
    448448        $site_id = $wpdb->siteid;
    449449
    450     $core_options = array('site_name', 'siteurl', 'active_sitewide_plugins', '_site_transient_timeout_theme_roots', '_site_transient_theme_roots', 'site_admins', 'dashboard_blog', 'can_compress_scripts');
     450    $core_options = array('site_name', 'siteurl', 'active_sitewide_plugins', '_site_transient_timeout_theme_roots', '_site_transient_theme_roots', 'site_admins', 'dashboard_blog', 'can_compress_scripts', 'global_terms_enabled' );
    451451
    452452    $core_options_in = "'" . implode("', '", $core_options) . "'";
     
    36923692
    36933693/**
     3694 * are global terms enabled
     3695 *
     3696 *
     3697 * @since 3.0.0
     3698 * @package WordPress
     3699 *
     3700 * @return bool True if multisite and global terms enabled
     3701 */
     3702function global_terms_enabled() {
     3703    if ( is_multisite() && '1' == get_site_option( 'global_terms_enabled' ) )
     3704        return true;
     3705
     3706    return false;
     3707}
     3708
     3709/**
    36943710 * gmt_offset modification for smart timezone handling
    36953711 *
Note: See TracChangeset for help on using the changeset viewer.