Make WordPress Core

Ticket #34217: 34217.diff

File 34217.diff, 1.4 KB (added by jeremyfelt, 10 years ago)
  • src/wp-includes/default-constants.php

     
    1111 * @see wp_debug_mode()
    1212 *
    1313 * @since 3.0.0
     14 *
     15 * @global int $blog_id
    1416 */
    1517function wp_initial_constants() {
    1618        global $blog_id;
     
    2830                define( 'WP_MAX_MEMORY_LIMIT', '256M' );
    2931        }
    3032
    31         /**
    32          * The $blog_id global, which you can change in the config allows you to create a simple
    33          * multiple blog installation using just one WordPress and changing $blog_id around.
    34          *
    35          * @global int $blog_id
    36          * @since 2.0.0
    37          */
    3833        if ( ! isset($blog_id) )
    3934                $blog_id = 1;
    4035
  • src/wp-settings.php

     
    2929global $wp_version, $wp_db_version, $tinymce_version, $required_php_version, $required_mysql_version;
    3030require( ABSPATH . WPINC . '/version.php' );
    3131
     32/**
     33 * If not already configured, `$blog_id` will default to 1 in a single site
     34 * configuration. In multisite, it will be overridden by default in ms-settings.php.
     35 *
     36 * @global int $blog_id
     37 * @since 2.0.0
     38 */
     39global $blog_id;
     40
    3241// Set initial default constants including WP_MEMORY_LIMIT, WP_MAX_MEMORY_LIMIT, WP_DEBUG, SCRIPT_DEBUG, WP_CONTENT_DIR and WP_CACHE.
    3342wp_initial_constants();
    3443