Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#47619 new defect (bug)

i got error in /wp-includes/media.php

Reported by: asaf-azoulay's profile Asaf Azoulay Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: administration, coding-standards Cc:


in media php at line 3633 in $strings array you use objects without to check if this objects is exist... thanks!

Change History (1)

#1 @SergeyBiryukov
5 years ago

  • Component changed from General to Media

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

For reference, there are four places in the $strings array where $post_type_object is used, introduced in #19257 and #33616.

It looks like the warning can only be reproduced if either the custom post type is no longer available or the built-in post type is unregistered.

Note: See TracTickets for help on using tickets.