Skip to:
Content

BuddyPress.org

Opened 11 months ago

#8920 new defect (bug)

customizer_set_uri can cause depreciation notice in PHP 8.1

Reported by: thomaslhotta's profile thomaslhotta Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 11.2.0
Component: Templates Keywords:
Cc:

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.