WordPress.org

Make WordPress Core

Ticket #15655: 15655.patch

File 15655.patch, 1.2 KB (added by ocean90, 7 years ago)

Patch for jackcrosby's changes

  • wp-admin/includes/media.php

     
    15631563 * @param unknown_type $id
    15641564 */
    15651565function media_upload_type_form($type = 'file', $errors = null, $id = null) {
     1566        global $tab;
    15661567        media_upload_header();
    15671568
    15681569        $post_id = isset( $_REQUEST['post_id'] )? intval( $_REQUEST['post_id'] ) : 0;
    15691570
    1570         $form_action_url = admin_url("media-upload.php?type=$type&tab=type&post_id=$post_id");
     1571        $form_action_url = admin_url("media-upload.php?type=$type&tab=$tab&post_id=$post_id");
    15711572        $form_action_url = apply_filters('media_upload_form_url', $form_action_url, $type);
    15721573?>
    15731574
     
    16211622 * @param unknown_type $id
    16221623 */
    16231624function media_upload_type_url_form($type = 'file', $errors = null, $id = null) {
     1625        global $tab;
    16241626        media_upload_header();
    16251627
    16261628        $post_id = intval($_REQUEST['post_id']);
    16271629
    1628         $form_action_url = admin_url("media-upload.php?type=$type&tab=type&post_id=$post_id");
     1630        $form_action_url = admin_url("media-upload.php?type=$type&tab=$tab&post_id=$post_id");
    16291631        $form_action_url = apply_filters('media_upload_form_url', $form_action_url, $type);
    16301632
    16311633        $callback = "type_url_form_$type";