WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/01/2017 03:29:08 AM (2 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct $attachment parameter type for wp_prepare_attachment_for_js filter.

Props danielbachhuber.
Fixes #42449.

File:
1 edited

Legend:

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

    r42343 r42345  
    31473147 * @since 3.5.0
    31483148 *
    3149  * @param mixed $attachment Attachment ID or object.
     3149 * @param int|WP_Post $attachment Attachment ID or object.
    31503150 * @return array|void Array of attachment details.
    31513151 */
     
    33703370     * @since 3.5.0
    33713371     *
    3372      * @param array      $response   Array of prepared attachment data.
    3373      * @param int|object $attachment Attachment ID or object.
    3374      * @param array      $meta       Array of attachment meta data.
     3372     * @param array   $response   Array of prepared attachment data.
     3373     * @param WP_Post $attachment Attachment object.
     3374     * @param array   $meta       Array of attachment meta data.
    33753375     */
    33763376    return apply_filters( 'wp_prepare_attachment_for_js', $response, $attachment, $meta );
Note: See TracChangeset for help on using the changeset viewer.