WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #22664, comment 6


Ignore:
Timestamp:
12/02/2012 10:35:39 PM (8 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22664, comment 6

    initial v1  
    66
    77Note the contents of the $attachments Array is as followed (for Stable release):
     8{{{
    89 Array
    910 (
     
    1516    [url] => http://gpp.dev/wp-content/uploads/2012/12/background1.jpg
    1617 )
    17 
     18}}}
    1819Granted I can adjust my code to be "combatible" if WordPress 3.5 will no longer contain this $attachments array.
    1920
    2021Note 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{{{
    2123 function my_func( $post, $attachment ){
    2224    print '<pre>';
     
    2729 }
    2830 add_action( 'attachment_fields_to_edit', 'my_func', 10, 2 );
     31}}}