[wp-trac] [WordPress Trac] #59336: Update edit term link generation while generating row action links
WordPress Trac
noreply at wordpress.org
Wed Sep 13 11:45:18 UTC 2023
#59336: Update edit term link generation while generating row action links
-----------------------------------------------+---------------------------
Reporter: thelovekesh | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Taxonomy | Version: 6.3.1
Severity: normal | Keywords: has-patch
Focuses: administration, php-compatibility |
-----------------------------------------------+---------------------------
Due to the last parameter being passed as null in `add_query_arg()`, row
action links generated by `WP_Terms_List_Table::handle_row_actions()` with
PHP 8.2+ cause deprecation warnings.
{{{
[29-Aug-2023 18:22:43 UTC] PHP Deprecated: strstr(): Passing null to
parameter #1 ($haystack) of type string is deprecated in /wp-
includes/functions.php on line 1144
[29-Aug-2023 18:22:43 UTC] PHP Deprecated: stripos(): Passing null to
parameter #1 ($haystack) of type string is deprecated in /wp-
includes/functions.php on line 1151
[29-Aug-2023 18:22:43 UTC] PHP Deprecated: stripos(): Passing null to
parameter #1 ($haystack) of type string is deprecated in /wp-
includes/functions.php on line 1154
[29-Aug-2023 18:22:43 UTC] PHP Deprecated: str_contains(): Passing null
to parameter #1 ($haystack) of type string is deprecated in /wp-
includes/functions.php on line 1161
[29-Aug-2023 18:22:43 UTC] PHP Deprecated: str_contains(): Passing null
to parameter #1 ($haystack) of type string is deprecated in /wp-
includes/functions.php on line 1164
}}}
This occurs when a user lacks the capability to `edit_term` and
`get_edit_term_link()` returns null.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59336>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list