Conversation
PR Summary
|
|
|
||
| global $wp_query; | ||
|
|
||
| if ( ! $wp_query || ! method_exists( $wp_query, 'get' ) ) { |
There was a problem hiding this comment.
| if ( ! $wp_query || ! method_exists( $wp_query, 'get' ) ) { | |
| // Some admin screens may not have a populated query object. | |
| if ( ! $wp_query || ! method_exists( $wp_query, 'get' ) ) { |
|
I can't approve this but LGTM |
Preview changes with PlaygroundYou can preview the recent changes for PR#1117 with the following PHP versions: PHP Version 8.3
PHP Version 7.4
Download Made with 💙 from GatherPress & a little bit of WordPress Playground. Changes will not persist between sessions. |
Description of the Change
PR includes fix reported in WP forum https://wordpress.org/support/topic/gatherpress-has-critical-error-when-i-access-wpforms-payment-settings/
PR also fixes depreciation notice that was reported.
Closes #
How to test the Change
Changelog Entry
Credits
Props @mauteri
Checklist: