Make WordPress Core


Ignore:
Timestamp:
09/29/2011 09:47:52 PM (13 years ago)
Author:
azaozz
Message:

Clean up remnants from having negative Post_IDs, props markjaquith, fixes #18235

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r18802 r18823  
    402402
    403403function get_upload_iframe_src($type) {
    404     global $post_ID, $temp_ID;
    405     $uploading_iframe_ID = (int) (0 == $post_ID ? $temp_ID : $post_ID);
     404    global $post_ID;
     405
     406    $uploading_iframe_ID = (int) $post_ID;
    406407    $upload_iframe_src = add_query_arg( 'post_id', $uploading_iframe_ID, admin_url('media-upload.php') );
    407408
    408409    if ( 'media' != $type )
    409410        $upload_iframe_src = add_query_arg('type', $type, $upload_iframe_src);
     411
    410412    $upload_iframe_src = apply_filters($type . '_upload_iframe_src', $upload_iframe_src);
    411413
Note: See TracChangeset for help on using the changeset viewer.