WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/13/2014 04:53:13 AM (7 years ago)
Author:
wonderboymusic
Message:

Eliminate use of extract() in Custom_Image_Header::step_2().

See #22400.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/custom-header.php

    r28375 r28384  
    690690            $attachment_id = absint( $_GET['file'] );
    691691            $file = get_attached_file( $attachment_id, true );
    692             $url = wp_get_attachment_image_src( $attachment_id, 'full');
     692            $url = wp_get_attachment_image_src( $attachment_id, 'full' );
    693693            $url = $url[0];
    694694        } elseif ( isset( $_POST ) ) {
    695             extract($this->step_2_manage_upload());
     695            $data = $this->step_2_manage_upload();
     696            $attachment_id = $data['attachment_id'];
     697            $file = $data['file'];
     698            $url = $data['url'];
     699            $type = $data['type'];
    696700        }
    697701
Note: See TracChangeset for help on using the changeset viewer.