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

WordPress Trac noreply at wordpress.org
Fri Dec 11 12:39:57 UTC 2020


#52030: Media metaboxes return fatal error if no author metadata present
---------------------------------+---------------------
 Reporter:  carloscastilloadhoc  |       Owner:  (none)
     Type:  defect (bug)         |      Status:  new
 Priority:  normal               |   Milestone:  5.6.1
Component:  Media                |     Version:  5.6
 Severity:  normal               |  Resolution:
 Keywords:                       |     Focuses:
---------------------------------+---------------------
Changes (by hellofromTonya):

 * milestone:  Awaiting Review => 5.6.1


Comment:

 Hello @carloscastilloadhoc,

 Welcome to WordPress Trac! Thank you for this ticket.

 Introduced in #46866 and changeset [49207], a check is missing for
 `get_userdata()` as it returns `false` when no user is found. At a
 minimum, this code should be guarded. Moving this ticket into 5.6.1 to add
 this guard.

 For the case where an image is programmatically created without an
 assigned user, more discussions is needed. Pinging @antpb @garrett-eclipse
 for their thoughts.

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


More information about the wp-trac mailing list