Docs: Miscellaneous docblock improvements.

See #53399


git-svn-id: https://develop.svn.wordpress.org/trunk@51955 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2021-10-29 23:11:32 +00:00
parent 86c54d872e
commit ec5ed03bf6
6 changed files with 44 additions and 34 deletions
+2 -2
View File
@@ -1040,7 +1040,7 @@ function _wp_cron() {
* @since 2.1.0
* @since 5.4.0 The 'weekly' schedule was added.
*
* @return array
* @return array[]
*/
function wp_get_schedules() {
$schedules = array(
@@ -1067,7 +1067,7 @@ function wp_get_schedules() {
*
* @since 2.1.0
*
* @param array $new_schedules An array of non-default cron schedules. Default empty.
* @param array[] $new_schedules An array of non-default cron schedule arrays. Default empty.
*/
return array_merge( apply_filters( 'cron_schedules', array() ), $schedules );
}
+2 -2
View File
@@ -3539,8 +3539,8 @@ function get_gmt_from_date( $string, $format = 'Y-m-d H:i:s' ) {
/**
* Given a date in UTC or GMT timezone, returns that date in the timezone of the site.
*
* Requires and returns a date in the Y-m-d H:i:s format.
* Return format can be overridden using the $format parameter.
* Requires a date in the Y-m-d H:i:s format.
* Default return format of 'Y-m-d H:i:s' can be overridden using the `$format` parameter.
*
* @since 1.2.0
*
+1 -1
View File
@@ -3073,7 +3073,7 @@ function require_if_theme_supports( $feature, $include ) {
* @type string $type The type of data associated with this feature.
* Valid values are 'string', 'boolean', 'integer',
* 'number', 'array', and 'object'. Defaults to 'boolean'.
* @type boolean $variadic Does this feature utilize the variadic support
* @type bool $variadic Does this feature utilize the variadic support
* of add_theme_support(), or are all arguments specified
* as the second parameter. Must be used with the "array" type.
* @type string $description A short description of the feature. Included in