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

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

Props upadalavipul, viralsampat, sabernhardt.
See #60021.
Built from https://develop.svn.wordpress.org/trunk@57748


git-svn-id: http://core.svn.wordpress.org/trunk@57249 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2024-03-02 10:47:15 +00:00
parent d3a22f538b
commit 8b2e4d0877
2 changed files with 18 additions and 2 deletions

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.5-beta3-57747'; $wp_version = '6.5-beta3-57748';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -130,8 +130,14 @@ global $wpdb;
// Include the wpdb class and, if present, a db.php database drop-in. // Include the wpdb class and, if present, a db.php database drop-in.
require_wp_db(); require_wp_db();
// Set the database table prefix and the format specifiers for database table columns. /**
* @since 3.3.0
*
* @global string $table_prefix The database table prefix.
*/
$GLOBALS['table_prefix'] = $table_prefix; $GLOBALS['table_prefix'] = $table_prefix;
// Set the database table prefix and the format specifiers for database table columns.
wp_set_wpdb_vars(); wp_set_wpdb_vars();
// Start the WordPress object cache, or an external object cache if the drop-in is present. // Start the WordPress object cache, or an external object cache if the drop-in is present.
@ -393,6 +399,11 @@ require ABSPATH . WPINC . '/class-wp-plugin-dependencies.php';
add_action( 'after_setup_theme', array( wp_script_modules(), 'add_hooks' ) ); add_action( 'after_setup_theme', array( wp_script_modules(), 'add_hooks' ) );
add_action( 'after_setup_theme', array( wp_interactivity(), 'add_hooks' ) ); add_action( 'after_setup_theme', array( wp_interactivity(), 'add_hooks' ) );
/**
* @since 3.3.0
*
* @global WP_Embed $wp_embed WordPress Embed object.
*/
$GLOBALS['wp_embed'] = new WP_Embed(); $GLOBALS['wp_embed'] = new WP_Embed();
/** /**
@ -418,6 +429,11 @@ if ( is_multisite() ) {
// Define must-use plugin directory constants, which may be overridden in the sunrise.php drop-in. // Define must-use plugin directory constants, which may be overridden in the sunrise.php drop-in.
wp_plugin_directory_constants(); wp_plugin_directory_constants();
/**
* @since 3.9.0
*
* @global array $wp_plugin_paths
*/
$GLOBALS['wp_plugin_paths'] = array(); $GLOBALS['wp_plugin_paths'] = array();
// Load must-use plugins. // Load must-use plugins.