Make WordPress Core

Changeset 30682


Ignore:
Timestamp:
12/01/2014 02:16:36 AM (12 years ago)
Author:
wonderboymusic
Message:

Improve various @param docs.

See #30224.

Location:
trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-filesystem-direct.php

    r30678 r30682  
    203203        /**
    204204         * @param string $file
    205          * @return string
     205         * @return string|false
    206206         */
    207207        public function group($file) {
  • trunk/src/wp-admin/includes/class-wp-filesystem-ftpext.php

    r30678 r30682  
    124124         * @param string $file
    125125         * @param string $contents
    126          * @param bool|string $mode
     126         * @param bool|int $mode
    127127         * @return bool
    128128         */
  • trunk/src/wp-admin/includes/class-wp-filesystem-ssh2.php

    r30678 r30682  
    170170         * @param string $file
    171171         * @param string $contents
    172          * @param int $mode
     172         * @param bool|int $mode
    173173         * @return bool
    174174         */
    … …  
    201201        /**
    202202         * @param string $file
    203          * @param bool $group
     203         * @param string $group
    204204         * @param bool $recursive
    205205         */
    … …  
    241241         * @since Unknown
    242242         *
    243          * @param string $file    Path to the file.
    244          * @param bool  $owner   A user name or number.
    245          * @param bool   $recursive Optional. If set True changes file owner recursivly. Defaults to False.
     243         * @param string     $file    Path to the file.
     244         * @param string|int $owner   A user name or number.
     245         * @param bool       $recursive Optional. If set True changes file owner recursivly. Defaults to False.
    246246         * @return bool|string Returns true on success or false on failure.
    247247         */
  • trunk/src/wp-includes/general-template.php

    r30674 r30682  
    20152015 * @param int|WP_Post $post      WP_Post object or ID. Default is global $post object.
    20162016 * @param bool        $translate Whether to translate the time string. Default false.
    2017  * @return false|string Formatted date string or Unix timestamp. False on failure.
     2017 * @return false|string|int Formatted date string or Unix timestamp. False on failure.
    20182018 */
    20192019function get_post_time( $d = 'U', $gmt = false, $post = null, $translate = false ) {
  • trunk/src/wp-includes/query.php

    r30673 r30682  
    177177 * @uses $wp_query
    178178 *
    179  * @param int|string|array $attachment Attachment ID, title, slug, or array of such.
     179 * @param int|string|array|object $attachment Attachment ID, title, slug, or array of such.
    180180 * @return bool
    181181 */
Note: See TracChangeset for help on using the changeset viewer.