[buddypress-trac] [BuddyPress Trac] #8920: customizer_set_uri can cause depreciation notice in PHP 8.1
buddypress-trac
noreply at wordpress.org
Fri Jun 16 09:44:03 UTC 2023
#8920: customizer_set_uri can cause depreciation notice in PHP 8.1
--------------------------+-----------------------------
Reporter: thomaslhotta | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Templates | Version: 11.2.0
Severity: normal | Keywords:
--------------------------+-----------------------------
Hi
In the function {{{customizer_set_uri}}} on line 693 the {{{'query'}}} key
of {{{$uri}}} can be empty. If that is the case, a depreciation notice
will be emitted.
I think the best solution would be to change the preceding else statement
to an
{{{ else if ( ! empty( $uri['query'] ) { }}}
because if the query key is empty the rest of the functionality does
nothing anyway.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8920>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list