From 00f318650d5e9360d3dadaa22aaec97c54e628dc Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 6 Jan 2014 05:47:51 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/media.php | 371 ++++++++++++++++++++++++++++---- src/wp-admin/media-upload.php | 14 +- 2 files changed, 336 insertions(+), 49 deletions(-) diff --git a/src/wp-admin/includes/media.php b/src/wp-admin/includes/media.php index e2f78d63f4..739fbd1bae 100644 --- a/src/wp-admin/includes/media.php +++ b/src/wp-admin/includes/media.php @@ -21,7 +21,14 @@ function media_upload_tabs() { 'library' => __('Media Library') ); - return apply_filters('media_upload_tabs', $_default_tabs); + /** + * Filter the available tabs in the legacy (pre-3.5.0) media popup. + * + * @since 2.5.0 + * + * @param array $_default_tabs An array of media tabs. + */ + return apply_filters( 'media_upload_tabs', $_default_tabs ); } /** @@ -68,12 +75,14 @@ function the_media_upload_tabs() { if ( !empty($tabs) ) { echo "