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

WordPress Trac noreply at wordpress.org
Mon Jan 18 12:53:45 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     |     Focuses:
---------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"49979" 49979]:
 {{{
 #!CommitTicketReference repository="" revision="49979"
 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.

 Props antpb, carloscastilloadhoc, hellofromTonya, garrett-eclipse.
 Fixes #52030.
 }}}

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


More information about the wp-trac mailing list