Make WordPress Core

Changeset 49181


Ignore:
Timestamp:
10/17/2020 02:52:04 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Miscellaneous docblock fixes.

See #50768

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r49120 r49181  
    961961
    962962/**
    963  * Downloads an image from the specified URL and attaches it to a post.
     963 * Downloads an image from the specified URL, saves it as an attachment, and optionally attaches it to a post.
    964964 *
    965965 * @since 2.6.0
    966966 * @since 4.2.0 Introduced the `$return` parameter.
    967  * @since 4.8.0 Introduced the 'id' option within the `$return` parameter.
     967 * @since 4.8.0 Introduced the 'id' option for the `$return` parameter.
    968968 * @since 5.3.0 The `$post_id` parameter was made optional.
    969969 * @since 5.4.0 The original URL of the attachment is stored in the `_source_url`
     
    975975 * @param string $return  Optional. Accepts 'html' (image tag html) or 'src' (URL),
    976976 *                        or 'id' (attachment ID). Default 'html'.
    977  * @return string|WP_Error Populated HTML img tag on success, WP_Error object otherwise.
     977 * @return string|int|WP_Error Populated HTML img tag, attachment ID, or attachment source
     978 *                             on success, WP_Error object otherwise.
    978979 */
    979980function media_sideload_image( $file, $post_id = 0, $desc = null, $return = 'html' ) {
     
    22742275 * @since 2.5.0
    22752276 *
    2276  * @param string  $type
    2277  * @param object  $errors
    2278  * @param int    $id
     2277 * @param string       $type
     2278 * @param object       $errors
     2279 * @param int|WP_Error $id
    22792280 */
    22802281function media_upload_type_form( $type = 'file', $errors = null, $id = null ) {
  • trunk/src/wp-admin/includes/plugin-install.php

    r48509 r49181  
    241241 *
    242242 * @param array $args
    243  * @return array
     243 * @return array|WP_Error
    244244 */
    245245function install_popular_tags( $args = array() ) {
  • trunk/src/wp-includes/class-wp-customize-control.php

    r48473 r49181  
    6161     *
    6262     * @since 3.4.0
    63      * @var string
     63     * @var string|WP_Customize_Setting|null
    6464     */
    6565    public $setting = 'default';
Note: See TracChangeset for help on using the changeset viewer.