Filesystem: in WP_Filesystem_FTPext::parselisting(), check for the existence of $b['islink'] before using it.

Props jesin.
Fixes #27975.

Built from https://develop.svn.wordpress.org/trunk@35476


git-svn-id: http://core.svn.wordpress.org/trunk@35440 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-10-31 20:17:24 +00:00
parent 244cb3e595
commit e4a2e0c4a9
2 changed files with 3 additions and 2 deletions

View File

@ -520,8 +520,9 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
} }
// Replace symlinks formatted as "source -> target" with just the source name // Replace symlinks formatted as "source -> target" with just the source name
if ( $b['islink'] ) if ( isset( $b['islink'] ) && $b['islink'] ) {
$b['name'] = preg_replace( '/(\s*->\s*.*)$/', '', $b['name'] ); $b['name'] = preg_replace( '/(\s*->\s*.*)$/', '', $b['name'] );
}
return $b; return $b;
} }

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.4-beta2-35475'; $wp_version = '4.4-beta2-35476';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.