[wp-trac] [WordPress Trac] #15655: Media Upload form does not pass tab name
WordPress Trac
wp-trac at lists.automattic.com
Sun Nov 6 20:56:22 UTC 2011
#15655: Media Upload form does not pass tab name
--------------------------+--------------------
Reporter: jackcrosby | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.3
Component: Upload | Version: 3.0.2
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+--------------------
Comment (by ocean90):
Tested the output without the patch
{{{
function _ds_test_filter($form_action_url, $type) {
debug($form_action_url);
debug($type);
debug($_REQUEST['tab']);
debug($_GLOBALS['tab']);
}
add_filter('media_upload_form_url', 'ds_test_filter', 10, 2);
}}}
Output after first load, ''From Computer'' is active:
{{{
string(74) "http://wpms.dev/wp-admin/media-
upload.php?type=image&tab=type&post_id=1244"
string(5) "image"
(Notice: Undefined index: tab) NULL
string(4) "type"
}}}
''From URL'' is active:
{{{
string(74) "http://wpms.dev/wp-admin/media-
upload.php?type=image&tab=type&post_id=1244"
string(5) "image"
string(8) "type_url"
string(8) "type_url"
}}}
''Media Library'' is active:
{{{
string(76) "http://wpms.dev/wp-admin/media-
upload.php?type=file&tab=library&post_id=1244"
string(4) "file"
string(7) "library"
string(7) "library"
}}}
''From Computer'' is active:
{{{
string(74) "http://wpms.dev/wp-admin/media-
upload.php?type=image&tab=type&post_id=1244"
string(5) "image"
string(4) "type"
string(4) "type"
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15655#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list