[wp-trac] [WordPress Trac] #22186: Backwards compatibility for admin/includes/media.php hooks
WordPress Trac
noreply at wordpress.org
Fri Nov 30 19:47:30 UTC 2012
#22186: Backwards compatibility for admin/includes/media.php hooks
--------------------------+-----------------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: reopened
Priority: low | Milestone: 3.5
Component: Media | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+-----------------------
Changes (by ZaneMatthew):
* cc: zanematthew@… (added)
* status: closed => reopened
* resolution: fixed =>
Comment:
Sorry Nacin, found this one, not sure if its an issue along the lines of
what your looking for.
The second parameter in the hooks seems not to have the same indexes in
that $attachments array.
I have a hook similar to this:
function my_func( $post, $attachment ){
print '<pre>';
print_r( $attachment );
print '</pre>';
die();
}
add_action('attachment_fields_to_save', 'my_func');
which on WP older than 3.5-rc
I receive this:
Array
(
[menu_order] => 0
[post_title] =>
[image_alt] =>
[post_excerpt] =>
[post_content] =>
[url] =>
)
RC gives me nothing.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22186#comment:52>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list