[wp-trac] [WordPress Trac] #47619: i got error in /wp-includes/media.php

WordPress Trac noreply at wordpress.org
Fri Jun 28 12:38:30 UTC 2019


#47619: i got error in /wp-includes/media.php
--------------------------+-----------------------------------------------
 Reporter:  Asaf Azoulay  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  administration, coding-standards
--------------------------+-----------------------------------------------
Changes (by SergeyBiryukov):

 * component:  General => Media


Comment:

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

 For reference, there are [source:tags/5.2.2/src/wp-
 includes/media.php?marks=3627-3631,3666,3670,3692,3693#L3627 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47619#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list