diff --git a/wp-admin/includes/class-wp-filesystem-ftpext.php b/wp-admin/includes/class-wp-filesystem-ftpext.php index 627128fcac..097cabdfd2 100644 --- a/wp-admin/includes/class-wp-filesystem-ftpext.php +++ b/wp-admin/includes/class-wp-filesystem-ftpext.php @@ -40,7 +40,7 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base { // This class uses the timeout on a per-connection basis, others use it on a per-action basis. if ( ! defined( 'FS_TIMEOUT' ) ) { - define( 'FS_TIMEOUT', 240 ); + define( 'FS_TIMEOUT', 4 * MINUTE_IN_SECONDS ); } if ( empty( $opt['port'] ) ) { diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index 8a178022dc..8fe8adeb97 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -2007,10 +2007,10 @@ function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_own * to allow for per-transport overriding of the default. */ if ( ! defined( 'FS_CONNECT_TIMEOUT' ) ) { - define( 'FS_CONNECT_TIMEOUT', 30 ); + define( 'FS_CONNECT_TIMEOUT', MINUTE_IN_SECONDS / 2 ); } if ( ! defined( 'FS_TIMEOUT' ) ) { - define( 'FS_TIMEOUT', 30 ); + define( 'FS_TIMEOUT', MINUTE_IN_SECONDS / 2 ); } if ( is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->has_errors() ) { diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php index 604c75f3fb..2d91d9fffe 100644 --- a/wp-admin/options-permalink.php +++ b/wp-admin/options-permalink.php @@ -203,7 +203,7 @@ if ( $structure_updated ) { add_settings_error( 'general', 'settings_updated', $message, 'success' ); } - set_transient( 'settings_errors', get_settings_errors(), 30 ); + set_transient( 'settings_errors', get_settings_errors(), MINUTE_IN_SECONDS / 2 ); wp_redirect( admin_url( 'options-permalink.php?settings-updated=true' ) ); exit; diff --git a/wp-admin/options.php b/wp-admin/options.php index 4e6ecbeb64..069b7c980b 100644 --- a/wp-admin/options.php +++ b/wp-admin/options.php @@ -344,7 +344,8 @@ if ( 'update' === $action ) { // We are saving settings sent from a settings pag if ( ! count( get_settings_errors() ) ) { add_settings_error( 'general', 'settings_updated', __( 'Settings saved.' ), 'success' ); } - set_transient( 'settings_errors', get_settings_errors(), 30 ); + + set_transient( 'settings_errors', get_settings_errors(), MINUTE_IN_SECONDS / 2 ); // Redirect back to the settings page that was submitted. $goback = add_query_arg( 'settings-updated', 'true', wp_get_referer() ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 3e14e800f8..a400f78b36 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53713'; +$wp_version = '6.1-alpha-53714'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.