Make WordPress Core

Changeset 57748


Ignore:
Timestamp:
03/02/2024 10:45:27 AM (5 months ago)
Author:
SergeyBiryukov
Message:

Docs: Document some globals in wp-settings.php.

Follow-up to [18532], [18993], [27158], [38362].

Props upadalavipul, viralsampat, sabernhardt.
See #60021.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-settings.php

    r57704 r57748  
    131131require_wp_db();
    132132
     133/**
     134 * @since 3.3.0
     135 *
     136 * @global string $table_prefix The database table prefix.
     137 */
     138$GLOBALS['table_prefix'] = $table_prefix;
     139
    133140// Set the database table prefix and the format specifiers for database table columns.
    134 $GLOBALS['table_prefix'] = $table_prefix;
    135141wp_set_wpdb_vars();
    136142
     
    394400add_action( 'after_setup_theme', array( wp_interactivity(), 'add_hooks' ) );
    395401
     402/**
     403 * @since 3.3.0
     404 *
     405 * @global WP_Embed $wp_embed WordPress Embed object.
     406 */
    396407$GLOBALS['wp_embed'] = new WP_Embed();
    397408
     
    419430wp_plugin_directory_constants();
    420431
     432/**
     433 * @since 3.9.0
     434 *
     435 * @global array $wp_plugin_paths
     436 */
    421437$GLOBALS['wp_plugin_paths'] = array();
    422438
Note: See TracChangeset for help on using the changeset viewer.