From 060476a1f2063e8a303c3a5d0546c82c5ab08867 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Tue, 15 Dec 2015 00:29:26 +0000 Subject: [PATCH] Filesystem API: Cast the port to an int in the FTPSockets class. PemFTP requires that the port be specified as an integer, not a numeric string. Fixes #35088 Built from https://develop.svn.wordpress.org/trunk@35942 git-svn-id: http://core.svn.wordpress.org/trunk@35906 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-filesystem-ftpsockets.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-filesystem-ftpsockets.php b/wp-admin/includes/class-wp-filesystem-ftpsockets.php index 29ac7888ab..75b43c33b8 100644 --- a/wp-admin/includes/class-wp-filesystem-ftpsockets.php +++ b/wp-admin/includes/class-wp-filesystem-ftpsockets.php @@ -39,7 +39,7 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base { if ( empty($opt['port']) ) $this->options['port'] = 21; else - $this->options['port'] = $opt['port']; + $this->options['port'] = (int) $opt['port']; if ( empty($opt['hostname']) ) $this->errors->add('empty_hostname', __('FTP hostname is required')); diff --git a/wp-includes/version.php b/wp-includes/version.php index af35b91846..9a855473c2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-35941'; +$wp_version = '4.5-alpha-35942'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.