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:
Drew Jaynes
2014-01-06 05:47:51 +00:00
parent ec71eefa59
commit 00f318650d
2 changed files with 336 additions and 49 deletions
+11 -3
View File
@@ -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';