Skip to content

Commit

Permalink
Docs: Correct $attachment parameter type for `wp_prepare_attachment…
Browse files Browse the repository at this point in the history
…_for_js` filter.

Props danielbachhuber.
Fixes #42449.

git-svn-id: https://develop.svn.wordpress.org/trunk@42345 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Dec 1, 2017
1 parent 8f95800 commit 2c325f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wp-includes/media.php
Expand Up @@ -3146,7 +3146,7 @@ function wp_plupload_default_settings() {
*
* @since 3.5.0
*
* @param mixed $attachment Attachment ID or object.
* @param int|WP_Post $attachment Attachment ID or object.
* @return array|void Array of attachment details.
*/
function wp_prepare_attachment_for_js( $attachment ) {
Expand Down Expand Up @@ -3369,9 +3369,9 @@ function wp_prepare_attachment_for_js( $attachment ) {
*
* @since 3.5.0
*
* @param array $response Array of prepared attachment data.
* @param int|object $attachment Attachment ID or object.
* @param array $meta Array of attachment meta data.
* @param array $response Array of prepared attachment data.
* @param WP_Post $attachment Attachment object.
* @param array $meta Array of attachment meta data.
*/
return apply_filters( 'wp_prepare_attachment_for_js', $response, $attachment, $meta );
}
Expand Down

0 comments on commit 2c325f6

Please sign in to comment.