[wp-trac] [WordPress Trac] #52882: get_term_link() WARNING

WordPress Trac noreply at wordpress.org
Tue Mar 23 13:54:05 UTC 2021


#52882: get_term_link() WARNING
--------------------------+-----------------------------
 Reporter:  Tkama         |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.8
Component:  Taxonomy      |     Version:  3.1
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"50565" 50565]:
 {{{
 #!CommitTicketReference repository="" revision="50565"
 Taxonomy: Use a consistent check for the `$rewrite['hierarchical']`
 parameter.

 This avoids a "Trying to access array offset on value of type bool" PHP
 warning in `get_term_link()` if the `$rewrite` parameter of
 `register_taxonomy()` is set as `false`.

 Props Tkama, SergeyBiryukov.
 Fixes #52882.
 }}}

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


More information about the wp-trac mailing list