Make WordPress Core

Ticket #60021: 60021.wp-settings.patch

File 60021.wp-settings.patch, 1.3 KB (added by sabernhardt, 2 years ago)

adds docblocks for $table_prefix, $wp_embed and $wp_plugin_paths

  • src/wp-settings.php

     
    130130// Include the wpdb class and, if present, a db.php database drop-in.
    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
    137143// Start the WordPress object cache, or an external object cache if the drop-in is present.
     
    393399add_action( 'after_setup_theme', array( wp_script_modules(), 'add_hooks' ) );
    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
    398409/**
     
    418429// Define must-use plugin directory constants, which may be overridden in the sunrise.php drop-in.
    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
    423439// Load must-use plugins.