mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 07:07:04 +00:00
Inline documentation for hooks in wp-admin/includes/media.php.
Props kpdesign, DrewAPicture. Fixes #25375. git-svn-id: https://develop.svn.wordpress.org/trunk@26908 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -44,10 +44,18 @@ if ( isset($action) && $action == 'edit' && !$ID )
|
||||
$type = apply_filters('media_upload_default_type', 'file');
|
||||
|
||||
// tab: gallery, library, or type-specific
|
||||
if ( isset($_GET['tab']) )
|
||||
if ( isset($_GET['tab']) ) {
|
||||
$tab = strval($_GET['tab']);
|
||||
else
|
||||
$tab = apply_filters('media_upload_default_tab', 'type');
|
||||
} else {
|
||||
/**
|
||||
* Filter the default tab in the legacy (pre-3.5.0) media popup.
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @param string $type The default media popup tab.
|
||||
*/
|
||||
$tab = apply_filters( 'media_upload_default_tab', 'type' );
|
||||
}
|
||||
|
||||
$body_id = 'media-upload';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user