Skip to content

Commit b64efb2

Browse files
Docs: Add missing descriptions for some admin media function parameters.
Follow-up to [7043], [7092], [8304], [9053], [21871]. Props huzaifaalmesbah. See #64224. git-svn-id: https://develop.svn.wordpress.org/trunk@61532 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d188679 commit b64efb2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/wp-admin/includes/media.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ function media_upload_tabs() {
3838
*
3939
* @global wpdb $wpdb WordPress database abstraction object.
4040
*
41-
* @param array $tabs
42-
* @return array $tabs with gallery if post has image attachment
41+
* @param array $tabs Associative array of default tab names.
42+
* @return array $tabs Filtered tabs with gallery if post has image attachment.
4343
*/
4444
function update_gallery_tab( $tabs ) {
4545
global $wpdb;
@@ -71,7 +71,7 @@ function update_gallery_tab( $tabs ) {
7171
*
7272
* @since 2.5.0
7373
*
74-
* @global string $redir_tab
74+
* @global string $redir_tab The name of the tab to redirect to.
7575
*/
7676
function the_media_upload_tabs() {
7777
global $redir_tab;
@@ -527,7 +527,7 @@ function media_handle_sideload( $file_array, $post_id = 0, $desc = null, $post_d
527527
* @since 5.3.0 Formalized the existing and already documented `...$args` parameter
528528
* by adding it to the function signature.
529529
*
530-
* @global string $body_id
530+
* @global string $body_id The ID attribute value for the body element.
531531
*
532532
* @param callable $content_func Function that outputs the content.
533533
* @param mixed ...$args Optional additional parameters to pass to the callback function when it's called.

0 commit comments

Comments
 (0)