Merged in feature/81-dev-dev01 (pull request #5)
auto-patch 81-dev-dev01-2023-12-05T22_45_26 * auto-patch 81-dev-dev01-2023-12-05T22_45_26
This commit is contained in:
@@ -553,7 +553,7 @@ function wp_update_plugins( $extra_stats = array() ) {
|
||||
}
|
||||
}
|
||||
|
||||
$sanitize_plugin_update_payload = static function( &$item ) {
|
||||
$sanitize_plugin_update_payload = static function ( &$item ) {
|
||||
$item = (object) $item;
|
||||
|
||||
unset( $item->translations, $item->compatibility );
|
||||
@@ -754,7 +754,7 @@ function wp_update_themes( $extra_stats = array() ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$hostname = wp_parse_url( esc_url_raw( $theme_data['UpdateURI'] ), PHP_URL_HOST );
|
||||
$hostname = wp_parse_url( sanitize_url( $theme_data['UpdateURI'] ), PHP_URL_HOST );
|
||||
|
||||
/**
|
||||
* Filters the update response for a given theme hostname.
|
||||
@@ -1126,7 +1126,11 @@ function _wp_delete_all_temp_backups() {
|
||||
}
|
||||
|
||||
if ( ! $wp_filesystem->wp_content_dir() ) {
|
||||
return new WP_Error( 'fs_no_content_dir', __( 'Unable to locate WordPress content directory (wp-content).' ) );
|
||||
return new WP_Error(
|
||||
'fs_no_content_dir',
|
||||
/* translators: %s: Directory name. */
|
||||
sprintf( __( 'Unable to locate WordPress content directory (%s).' ), 'wp-content' )
|
||||
);
|
||||
}
|
||||
|
||||
$temp_backup_dir = $wp_filesystem->wp_content_dir() . 'upgrade-temp-backup/';
|
||||
|
||||
Reference in New Issue
Block a user