From 0fc9bed46e3105eef6be04e0742a8f513a14b2fe Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 24 Sep 2015 14:22:24 +0000 Subject: [PATCH] Docs: Add a summary, version, and parameter and return descriptions to the DocBlock for `WP_Filesystem_ftpsockets::get_contents()`. Also reverses the return types as `string` is expected, `false` is the outlier. See [30978]. See #30989. See #32246. Built from https://develop.svn.wordpress.org/trunk@34495 git-svn-id: http://core.svn.wordpress.org/trunk@34459 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-filesystem-ftpsockets.php | 10 +++++++--- wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/class-wp-filesystem-ftpsockets.php b/wp-admin/includes/class-wp-filesystem-ftpsockets.php index 68f8227562..a7a9002c6d 100644 --- a/wp-admin/includes/class-wp-filesystem-ftpsockets.php +++ b/wp-admin/includes/class-wp-filesystem-ftpsockets.php @@ -91,10 +91,14 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base { } /** + * Retrieves the file contents. + * + * @since 2.5.0 * @access public - * - * @param string $file - * @return false|string + * + * @param string $file Filename. + * @return string|false File contents on success, false if no temp file could be opened, + * or if the file doesn't exist. */ public function get_contents( $file ) { if ( ! $this->exists($file) ) diff --git a/wp-includes/version.php b/wp-includes/version.php index fbd6b53eb4..dbbae2fe20 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34494'; +$wp_version = '4.4-alpha-34495'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.