WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#40884 closed defect (bug) (invalid)

Filtering media includes debug output

Reported by: Talvo Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.7.5
Component: Media Keywords:
Focuses: ui, administration Cc:

Description

When filtering media items in the admin screen (for example, to show only unattached media), the HTML output starts with a print_r() of the WP_Query object for the matching media items; looks like a debug statement that was left in by mistake.

Change History (3)

#1 @SergeyBiryukov
3 years ago

  • Component changed from General to Media

Hi @Talvo, welcome to WordPress Trac! Thanks for the report.

Does it still happen on a clean install with all plugins disabled and a default theme (Twenty Seventeen) activated?

The only instance of print_r() in WordPress core is in wp-includes/atomlib.php, but that file doesn't interact with Media Library in any way.

#2 @Talvo
3 years ago

  • Resolution set to invalid
  • Status changed from new to closed

That.. is a very good question. I can't disable things on the site where I saw the issue at the moment, but I don't see it on a separate install I have running, so sounds like you're right and it's a plugin; didn't even think of that. Will try and debug which one's causing it and report it to them later. Thanks, @SergeyBiryukov.

#3 @netweb
3 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.