WordPress.org

Make WordPress Core

Changeset 13069


Ignore:
Timestamp:
02/12/2010 08:23:06 PM (8 years ago)
Author:
ryan
Message:

Add can_compress_scripts to core site options. Add phpdoc for wp_load_core_site_options(). see #11644

File:
1 edited

Legend:

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

    r13066 r13069  
    438438}
    439439
     440/**
     441 * Loads and caches certain often requested site options if is_multisite() and a peristent cache is not being used.
     442 *
     443 * @since 3.0.0
     444 * @package WordPress
     445 * @subpackage Option
     446 *
     447 * @param int $site_id Optional site ID for which to query the options. Defaults to the current site.
     448 */
    440449function wp_load_core_site_options( $site_id = null ) {
    441450    global $wpdb, $_wp_using_ext_object_cache;
     
    447456        $site_id = $wpdb->siteid;
    448457
    449     $core_options = array('site_name', 'siteurl', 'active_sitewide_plugins', '_site_transient_timeout_theme_roots', '_site_transient_theme_roots', 'site_admins', 'dashboard_blog');
     458    $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');
    450459
    451460    $core_options_in = "'" . implode("', '", $core_options) . "'";
Note: See TracChangeset for help on using the changeset viewer.