WordPress.org

Make WordPress Core

Opened 4 months ago

Last modified 4 months ago

#47619 new defect (bug)

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

Reported by: Asaf Azoulay Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: administration, coding-standards Cc:
PR Number:

Description

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
4 months 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.