Update WordPress to 5.2
This commit is contained in:
parent
489b5a5914
commit
e00f87f2f5
599 changed files with 119573 additions and 55990 deletions
|
|
@ -29,6 +29,11 @@ function wp_initial_constants() {
|
|||
define( 'TB_IN_BYTES', 1024 * GB_IN_BYTES );
|
||||
/**#@-*/
|
||||
|
||||
// Start of run timestamp.
|
||||
if ( ! defined( 'WP_START_TIMESTAMP' ) ) {
|
||||
define( 'WP_START_TIMESTAMP', microtime( true ) );
|
||||
}
|
||||
|
||||
$current_limit = @ini_get( 'memory_limit' );
|
||||
$current_limit_int = wp_convert_hr_to_bytes( $current_limit );
|
||||
|
||||
|
|
@ -67,18 +72,18 @@ function wp_initial_constants() {
|
|||
define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); // no trailing slash, full paths only - WP_CONTENT_URL is defined further down
|
||||
}
|
||||
|
||||
// Add define('WP_DEBUG', true); to wp-config.php to enable display of notices during development.
|
||||
// Add define( 'WP_DEBUG', true ); to wp-config.php to enable display of notices during development.
|
||||
if ( ! defined( 'WP_DEBUG' ) ) {
|
||||
define( 'WP_DEBUG', false );
|
||||
}
|
||||
|
||||
// Add define('WP_DEBUG_DISPLAY', null); to wp-config.php use the globally configured setting for
|
||||
// Add define( 'WP_DEBUG_DISPLAY', null ); to wp-config.php use the globally configured setting for
|
||||
// display_errors and not force errors to be displayed. Use false to force display_errors off.
|
||||
if ( ! defined( 'WP_DEBUG_DISPLAY' ) ) {
|
||||
define( 'WP_DEBUG_DISPLAY', true );
|
||||
}
|
||||
|
||||
// Add define('WP_DEBUG_LOG', true); to enable error logging to wp-content/debug.log.
|
||||
// Add define( 'WP_DEBUG_LOG', true ); to enable error logging to wp-content/debug.log.
|
||||
if ( ! defined( 'WP_DEBUG_LOG' ) ) {
|
||||
define( 'WP_DEBUG_LOG', false );
|
||||
}
|
||||
|
|
@ -87,7 +92,7 @@ function wp_initial_constants() {
|
|||
define( 'WP_CACHE', false );
|
||||
}
|
||||
|
||||
// Add define('SCRIPT_DEBUG', true); to wp-config.php to enable loading of non-minified,
|
||||
// Add define( 'SCRIPT_DEBUG', true ); to wp-config.php to enable loading of non-minified,
|
||||
// non-concatenated scripts and stylesheets.
|
||||
if ( ! defined( 'SCRIPT_DEBUG' ) ) {
|
||||
if ( ! empty( $GLOBALS['wp_version'] ) ) {
|
||||
|
|
@ -302,6 +307,13 @@ function wp_cookie_constants() {
|
|||
if ( ! defined( 'COOKIE_DOMAIN' ) ) {
|
||||
define( 'COOKIE_DOMAIN', false );
|
||||
}
|
||||
|
||||
if ( ! defined( 'RECOVERY_MODE_COOKIE' ) ) {
|
||||
/**
|
||||
* @since 5.2.0
|
||||
*/
|
||||
define( 'RECOVERY_MODE_COOKIE', 'wordpress_rec_' . COOKIEHASH );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue