Ticket #60021: 60021.wp-settings.patch
| File 60021.wp-settings.patch, 1.3 KB (added by , 2 years ago) |
|---|
-
src/wp-settings.php
130 130 // Include the wpdb class and, if present, a db.php database drop-in. 131 131 require_wp_db(); 132 132 133 /** 134 * @since 3.3.0 135 * 136 * @global string $table_prefix The database table prefix. 137 */ 138 $GLOBALS['table_prefix'] = $table_prefix; 139 133 140 // Set the database table prefix and the format specifiers for database table columns. 134 $GLOBALS['table_prefix'] = $table_prefix;135 141 wp_set_wpdb_vars(); 136 142 137 143 // Start the WordPress object cache, or an external object cache if the drop-in is present. … … 393 399 add_action( 'after_setup_theme', array( wp_script_modules(), 'add_hooks' ) ); 394 400 add_action( 'after_setup_theme', array( wp_interactivity(), 'add_hooks' ) ); 395 401 402 /** 403 * @since 3.3.0 404 * 405 * @global WP_Embed $wp_embed WordPress Embed object. 406 */ 396 407 $GLOBALS['wp_embed'] = new WP_Embed(); 397 408 398 409 /** … … 418 429 // Define must-use plugin directory constants, which may be overridden in the sunrise.php drop-in. 419 430 wp_plugin_directory_constants(); 420 431 432 /** 433 * @since 3.9.0 434 * 435 * @global array $wp_plugin_paths 436 */ 421 437 $GLOBALS['wp_plugin_paths'] = array(); 422 438 423 439 // Load must-use plugins.