';
list_core_update( $update );
@@ -239,6 +241,10 @@ function list_plugin_updates() {
$plugin_data) {
$info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug ));
+ if ( is_wp_error( $info ) ) {
+ $info = false;
+ }
+
// Get plugin compat for running version of WordPress.
if ( isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=') ) {
$compat = '
' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
@@ -343,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;
}
@@ -405,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);
@@ -538,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'] ) )
@@ -580,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');
@@ -606,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 '';
+ ?>
+
+
+
+
+