Upgrade: Fix updating plugins which include a numeric file/folder names.
The fix in [41821] caused numeric folder names to be reindexed to 0..n when in the root directory (for example, `my-plugin/24/`). Props edo888. See #41524. Fixes #42628 for trunk. Built from https://develop.svn.wordpress.org/trunk@42214 git-svn-id: http://core.svn.wordpress.org/trunk@42043 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2322b40358
commit
27116397c5
|
@ -342,7 +342,8 @@ class WP_Upgrader {
|
|||
if ( ! empty( $details['files'] ) ) {
|
||||
$children = $this->flatten_dirlist( $details['files'], $path . $name . '/' );
|
||||
|
||||
$files = array_merge( $files, $children );
|
||||
// Merge keeping possible numeric keys, which array_merge() will reindex from 0..n
|
||||
$files = $files + $children;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-alpha-42211';
|
||||
$wp_version = '5.0-alpha-42214';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue