Changes between Initial Version and Version 1 of Ticket #22664, comment 6
- Timestamp:
- 12/02/2012 10:35:39 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22664, comment 6
initial v1 6 6 7 7 Note the contents of the $attachments Array is as followed (for Stable release): 8 {{{ 8 9 Array 9 10 ( … … 15 16 [url] => http://gpp.dev/wp-content/uploads/2012/12/background1.jpg 16 17 ) 17 18 }}} 18 19 Granted I can adjust my code to be "combatible" if WordPress 3.5 will no longer contain this $attachments array. 19 20 20 21 Note you can just add the following code to your functions.php, or make a plugins.php, and proceed to edit an attachment, noting the differences between Stable and 3.5RC2 22 {{{ 21 23 function my_func( $post, $attachment ){ 22 24 print '<pre>'; … … 27 29 } 28 30 add_action( 'attachment_fields_to_edit', 'my_func', 10, 2 ); 31 }}}