[wp-trac] [WordPress Trac] #52030: Media metaboxes return fatal error if no author metadata present

WordPress Trac noreply at wordpress.org
Thu Jan 21 12:20:21 UTC 2021


#52030: Media metaboxes return fatal error if no author metadata present
------------------------------------------+-----------------------------
 Reporter:  carloscastilloadhoc           |       Owner:  SergeyBiryukov
     Type:  defect (bug)                  |      Status:  closed
 Priority:  normal                        |   Milestone:  5.6.1
Component:  Media                         |     Version:  5.6
 Severity:  normal                        |  Resolution:  fixed
 Keywords:  has-patch commit fixed-major  |     Focuses:
------------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"49995" 49995]:
 {{{
 #!CommitTicketReference repository="" revision="49995"
 Media: Use consistent method for instantiating an attachment author object
 in Media Library.

 Previously, attachments without an author could cause a PHP fatal error
 due to calling the `::exists()` method on a `false` value.

 Follow-up to [49207].

 Props antpb, carloscastilloadhoc, hellofromTonya, garrett-eclipse.
 Merges [49979] to the 5.6 branch.
 Fixes #52030.
 }}}

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


More information about the wp-trac mailing list