Improve various @param
docs.
See #30224. git-svn-id: https://develop.svn.wordpress.org/trunk@30682 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4d46475b3d
commit
095bfabfa9
@ -202,7 +202,7 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||
|
||||
/**
|
||||
* @param string $file
|
||||
* @return string
|
||||
* @return string|false
|
||||
*/
|
||||
public function group($file) {
|
||||
$gid = @filegroup($file);
|
||||
|
@ -123,7 +123,7 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||
/**
|
||||
* @param string $file
|
||||
* @param string $contents
|
||||
* @param bool|string $mode
|
||||
* @param bool|int $mode
|
||||
* @return bool
|
||||
*/
|
||||
public function put_contents($file, $contents, $mode = false ) {
|
||||
|
@ -169,7 +169,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
/**
|
||||
* @param string $file
|
||||
* @param string $contents
|
||||
* @param int $mode
|
||||
* @param bool|int $mode
|
||||
* @return bool
|
||||
*/
|
||||
public function put_contents($file, $contents, $mode = false ) {
|
||||
@ -200,7 +200,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
|
||||
/**
|
||||
* @param string $file
|
||||
* @param bool $group
|
||||
* @param string $group
|
||||
* @param bool $recursive
|
||||
*/
|
||||
public function chgrp($file, $group, $recursive = false ) {
|
||||
@ -240,9 +240,9 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
*
|
||||
* @since Unknown
|
||||
*
|
||||
* @param string $file Path to the file.
|
||||
* @param bool $owner A user name or number.
|
||||
* @param bool $recursive Optional. If set True changes file owner recursivly. Defaults to False.
|
||||
* @param string $file Path to the file.
|
||||
* @param string|int $owner A user name or number.
|
||||
* @param bool $recursive Optional. If set True changes file owner recursivly. Defaults to False.
|
||||
* @return bool|string Returns true on success or false on failure.
|
||||
*/
|
||||
public function chown( $file, $owner, $recursive = false ) {
|
||||
|
@ -2014,7 +2014,7 @@ function get_the_time( $d = '', $post = null ) {
|
||||
* @param bool $gmt Optional. Whether to retrieve the GMT time. Default false.
|
||||
* @param int|WP_Post $post WP_Post object or ID. Default is global $post object.
|
||||
* @param bool $translate Whether to translate the time string. Default false.
|
||||
* @return false|string Formatted date string or Unix timestamp. False on failure.
|
||||
* @return false|string|int Formatted date string or Unix timestamp. False on failure.
|
||||
*/
|
||||
function get_post_time( $d = 'U', $gmt = false, $post = null, $translate = false ) {
|
||||
$post = get_post($post);
|
||||
|
@ -176,7 +176,7 @@ function is_post_type_archive( $post_types = '' ) {
|
||||
* @since 2.0.0
|
||||
* @uses $wp_query
|
||||
*
|
||||
* @param int|string|array $attachment Attachment ID, title, slug, or array of such.
|
||||
* @param int|string|array|object $attachment Attachment ID, title, slug, or array of such.
|
||||
* @return bool
|
||||
*/
|
||||
function is_attachment( $attachment = '' ) {
|
||||
|
Loading…
Reference in New Issue
Block a user