[wp-trac] [WordPress Trac] #59336: Update edit term link generation while generating row action links

WordPress Trac noreply at wordpress.org
Wed Sep 20 08:08:58 UTC 2023


#59336: Update edit term link generation while generating row action links
-------------------------------------+-------------------------------------
 Reporter:  thelovekesh              |       Owner:  audrasjb
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  6.4
Component:  Taxonomy                 |     Version:  6.3.1
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch php81 has-     |     Focuses:  administration, php-
  unit-tests commit                  |  compatibility
-------------------------------------+-------------------------------------
Changes (by audrasjb):

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


Comment:

 In [changeset:"56631" 56631]:
 {{{
 #!CommitTicketReference repository="" revision="56631"
 Taxonomy: Restrict term edit link generation in
 `WP_Terms_List_Table::handle_row_actions()`.

 This changeset restricts edit term link generation if the user lacks the
 `edit_term` cap in order to prevent PHP 8.1+ deprecations shown when a
 user lacks this
 capability and `get_edit_term_link()` returns null.

 Props thelovekesh, jrf.
 Fixes #59336.
 }}}

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


More information about the wp-trac mailing list