From e4a2e0c4a9f21795badee20bd820a64c0295a53b Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 31 Oct 2015 20:17:24 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-filesystem-ftpext.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-filesystem-ftpext.php b/wp-admin/includes/class-wp-filesystem-ftpext.php index c869ec0dc9..7f5f052cbb 100644 --- a/wp-admin/includes/class-wp-filesystem-ftpext.php +++ b/wp-admin/includes/class-wp-filesystem-ftpext.php @@ -520,8 +520,9 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base { } // 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'] ); + } return $b; } diff --git a/wp-includes/version.php b/wp-includes/version.php index b7ec0f3227..b0fe52a322 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @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.