mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Docs: Correct $attachment
parameter type for wp_prepare_attachment_for_js
filter.
Props danielbachhuber. Fixes #42449. Built from https://develop.svn.wordpress.org/trunk@42345 git-svn-id: http://core.svn.wordpress.org/trunk@42174 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
aaf99e6913
commit
3c4df552ca
@ -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 ) {
|
||||
@ -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 );
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-alpha-42343';
|
||||
$wp_version = '5.0-alpha-42345';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user