|
@@ -342,9 +349,9 @@ function list_translation_updates() {
$form_action = 'update-core.php?action=do-translation-upgrade';
?>
-
new_files ) && ! $update->new_files;
+
?>
';
return;
}
- if ( ! WP_Filesystem( $credentials, ABSPATH ) ) {
+ if ( ! WP_Filesystem( $credentials, ABSPATH, $allow_relaxed_file_ownership ) ) {
// Failed to connect, Error and request again
- request_filesystem_credentials( $url, '', true, ABSPATH );
+ request_filesystem_credentials( $url, '', true, ABSPATH, array( 'version', 'locale' ), $allow_relaxed_file_ownership );
echo '';
return;
}
@@ -404,7 +415,9 @@ function do_core_upgrade( $reinstall = false ) {
add_filter( 'update_feedback', 'show_message' );
$upgrader = new Core_Upgrader();
- $result = $upgrader->upgrade( $update );
+ $result = $upgrader->upgrade( $update, array(
+ 'allow_relaxed_file_ownership' => $allow_relaxed_file_ownership
+ ) );
if ( is_wp_error($result) ) {
show_message($result);
@@ -457,10 +470,10 @@ if ( ( 'do-theme-upgrade' == $action || ( 'do-plugin-upgrade' == $action && ! is
}
$title = __('WordPress Updates');
-$parent_file = 'tools.php';
+$parent_file = 'index.php';
$updates_overview = '' . __( 'On this screen, you can update to the latest version of WordPress, as well as update your themes and plugins from the WordPress.org repositories.' ) . '
';
-$updates_overview .= '' . __( 'If an update is available, you᾿ll see a notification appear in the Toolbar and navigation menu.' ) . ' ' . __( 'Keeping your site up to date is important for your site’s security, and makes the internet a safer place for you and your readers.' ) . '
';
+$updates_overview .= '' . __( 'If an update is available, you᾿ll see a notification appear in the Toolbar and navigation menu.' ) . ' ' . __( 'Keeping your site updated is important for security. It also makes the internet a safer place for you and your readers.' ) . '
';
get_current_screen()->add_help_tab( array(
'id' => 'overview',
@@ -484,7 +497,7 @@ get_current_screen()->add_help_tab( array(
get_current_screen()->set_help_sidebar(
'' . __('For more information:') . '
' .
'' . __( 'Documentation on Updating WordPress' ) . '
' .
- '' . __( 'Support Forums' ) . '
'
+ '' . __( 'Support Forums' ) . '
'
);
if ( 'upgrade-core' == $action ) {
@@ -521,7 +534,12 @@ if ( 'upgrade-core' == $action ) {
if ( $core || $plugins || $themes )
list_translation_updates();
unset( $core, $plugins, $themes );
- do_action('core_upgrade_preamble');
+ /**
+ * Fires after the core, plugin, and theme update tables.
+ *
+ * @since 2.9.0
+ */
+ do_action( 'core_upgrade_preamble' );
echo '';
include(ABSPATH . 'wp-admin/admin-footer.php');
@@ -532,8 +550,7 @@ if ( 'upgrade-core' == $action ) {
check_admin_referer('upgrade-core');
- // do the (un)dismiss actions before headers,
- // so that they can redirect
+ // Do the (un)dismiss actions before headers, so that they can redirect.
if ( isset( $_POST['dismiss'] ) )
do_dismiss_core_update();
elseif ( isset( $_POST['undismiss'] ) )
@@ -574,7 +591,7 @@ if ( 'upgrade-core' == $action ) {
require_once(ABSPATH . 'wp-admin/admin-header.php');
echo '';
echo '
' . esc_html__('Update Plugins') . '
';
- echo "";
+ echo '';
echo '';
include(ABSPATH . 'wp-admin/admin-footer.php');
@@ -600,10 +617,12 @@ if ( 'upgrade-core' == $action ) {
$title = __('Update Themes');
require_once(ABSPATH . 'wp-admin/admin-header.php');
- echo '';
- echo '
' . esc_html__('Update Themes') . '
';
- echo "";
- echo '';
+ ?>
+
+
+
+
+