[wp-trac] [WordPress Trac] #60800: Twenty Twenty-One: prevent PHP 8 fatal error from non-string in $tags_list

WordPress Trac noreply at wordpress.org
Sun Apr 14 21:55:49 UTC 2024


#60800: Twenty Twenty-One: prevent PHP 8 fatal error from non-string in $tags_list
-------------------------------------------------+-------------------------
 Reporter:  josephscott                          |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.6
Component:  Bundled Theme                        |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  good-first-bug has-patch needs-      |     Focuses:
  testing 2nd-opinion                            |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"57991" 57991]:
 {{{
 #!CommitTicketReference repository="" revision="57991"
 Twenty Twenty-One: Check for `WP_Error` before outputting
 `get_the_tag_list()`.

 This prevents a fatal error on PHP 8 and brings consistency with the other
 bundled themes.

 Follow-up to [47886].

 Props josephscott, sabernhardt, poena, nirav7707, devsahadat.
 Fixes #60800.
 }}}

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


More information about the wp-trac mailing list