Opened 9 months ago
Closed 8 months ago
#60103 closed defect (bug) (wontfix)
Unused $body_id variable on the media-upload.php file.
Reported by: | upadalavipul | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Media | Keywords: | close |
Focuses: | administration, coding-standards | Cc: |
Description
I have reviewed the media.php file code and found the $body_id variable is unused. So I think as per the coding standard we need to remove the $body_id variable here.
files: wp-admin/media-upload.php
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Hi there, thanks for the patch!
The
$body_id
global is used inwp_iframe()
andiframe_header()
.wp_media_upload_handler()
callswp_iframe()
withmedia_upload_type_form()
as a callback printing the content, which in turn loads themedia-upload.php
file where$body_id
is defined.These are legacy media functions, but they are still kept for backward compatibility, so I don't think the
$body_id
global should be removed, as that might cause unnecessary breakage.