Improve various @param docs.

See #30224.

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


git-svn-id: http://core.svn.wordpress.org/trunk@30672 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-12-01 02:17:21 +00:00
parent e619abda6e
commit 37a23b2c73
6 changed files with 10 additions and 10 deletions

View File

@ -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);

View 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 ) {

View File

@ -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 ) {

View File

@ -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);

View File

@ -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 = '' ) {

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.1-beta2-30681';
$wp_version = '4.1-beta2-30682';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.