From fbb6ef1922a6e381da5dc8d43a4990a9b9efffeb Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 24 Sep 2015 14:11:26 +0000 Subject: [PATCH] Docs: Add a summary, version, and parameter and return descriptions to the DocBlock for `WP_Filesystem_FTPext::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@34493 git-svn-id: http://core.svn.wordpress.org/trunk@34457 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-filesystem-ftpext.php | 8 ++++++-- wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/class-wp-filesystem-ftpext.php b/wp-admin/includes/class-wp-filesystem-ftpext.php index bfa19ac0d3..541079d7b3 100644 --- a/wp-admin/includes/class-wp-filesystem-ftpext.php +++ b/wp-admin/includes/class-wp-filesystem-ftpext.php @@ -93,10 +93,14 @@ class WP_Filesystem_FTPext 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 couldn't be retrieved. */ public function get_contents( $file ) { $tempfile = wp_tempnam($file); diff --git a/wp-includes/version.php b/wp-includes/version.php index a720382e9f..44c1a348b9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34492'; +$wp_version = '4.4-alpha-34493'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.