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 | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Media | Keywords: | |
Focuses: | administration, coding-standards | Cc: |
Description
in media php at line 3633 in $strings array you use objects without to check if this objects is exist... thanks!
Note: See
TracTickets for help on using
tickets.
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.