mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
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:
@@ -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 = '' ) {
|
||||
|
||||
Reference in New Issue
Block a user