Improve some `wp-admin/includes/class-wp-filesystem-*.php` docs for `@param`.

See #30799.

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


git-svn-id: http://core.svn.wordpress.org/trunk@30964 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-12-20 20:40:23 +00:00
parent 6bde00ec42
commit 574fabf2bc
5 changed files with 7 additions and 6 deletions

View File

@ -394,7 +394,7 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
/** /**
* @param string $path * @param string $path
* @param bool $recursive * @param bool $recursive
* @return type * @return bool
*/ */
public function rmdir($path, $recursive = false) { public function rmdir($path, $recursive = false) {
return $this->delete($path, $recursive); return $this->delete($path, $recursive);

View File

@ -89,7 +89,7 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
/** /**
* @param string $file * @param string $file
* @return bool|string * @return false|string
*/ */
public function get_contents( $file ) { public function get_contents( $file ) {
$tempfile = wp_tempnam($file); $tempfile = wp_tempnam($file);

View File

@ -83,7 +83,7 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
/** /**
* @param string $file * @param string $file
* @return bool|string * @return false|string
*/ */
public function get_contents( $file ) { public function get_contents( $file ) {
if ( ! $this->exists($file) ) if ( ! $this->exists($file) )

View File

@ -126,6 +126,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
/** /**
* @param string $command * @param string $command
* @param bool $returnbool * @param bool $returnbool
* @return bool|string
*/ */
public function run_command( $command, $returnbool = false) { public function run_command( $command, $returnbool = false) {
@ -192,7 +193,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
/** /**
* @param string $dir * @param string $dir
* @return bool * @return bool|string
*/ */
public function chdir($dir) { public function chdir($dir) {
return $this->run_command('cd ' . $dir, true); return $this->run_command('cd ' . $dir, true);
@ -215,7 +216,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
* @param string $file * @param string $file
* @param int $mode * @param int $mode
* @param bool $recursive * @param bool $recursive
* @return bool * @return bool|string
*/ */
public function chmod($file, $mode = false, $recursive = false) { public function chmod($file, $mode = false, $recursive = false) {
if ( ! $this->exists($file) ) if ( ! $this->exists($file) )

View File

@ -429,7 +429,7 @@ class WP_Posts_List_Table extends WP_List_Table {
* @param array $pages * @param array $pages
* @param int $pagenum * @param int $pagenum
* @param int $per_page * @param int $per_page
* @return bool|null * @return false|null
*/ */
private function _display_rows_hierarchical( $pages, $pagenum = 1, $per_page = 20 ) { private function _display_rows_hierarchical( $pages, $pagenum = 1, $per_page = 20 ) {
global $wpdb; global $wpdb;