Created
October 23, 2024 07:35
-
-
Save bor0/e770173f52df197e65098389c84bbdeb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/plugins/gravityforms/gravityforms.php b/plugins/gravityforms/gravityforms.php | |
index c5d619eb68a..7826a2a23b5 100644 | |
--- a/plugins/gravityforms/gravityforms.php | |
+++ b/plugins/gravityforms/gravityforms.php | |
@@ -1262,9 +1262,9 @@ public static function no_conflict_mode_script() { | |
*/ | |
private static function no_conflict_mode( &$wp_objects, $wp_required_objects, $gf_required_objects, $type = 'scripts' ) { | |
- $current_page = trim( strtolower( rgget( 'page' ) ) ); | |
+ $current_page = trim( strtolower( (string) rgget( 'page' ) ) ); | |
if ( empty( $current_page ) ) { | |
- $current_page = trim( strtolower( rgget( 'gf_page' ) ) ); | |
+ $current_page = trim( strtolower( (string) rgget( 'gf_page' ) ) ); | |
} | |
if ( empty( $current_page ) ) { | |
$current_page = RG_CURRENT_PAGE; | |
@@ -1734,7 +1734,7 @@ public static function is_gravity_ajax_action() { | |
public static function is_gravity_page() { | |
// Gravity Forms pages | |
- $current_page = trim( strtolower( self::get( 'page' ) ) ); | |
+ $current_page = trim( strtolower( (string) self::get( 'page' ) ) ); | |
$gf_pages = array( 'gf_edit_forms', 'gf_new_form', 'gf_entries', 'gf_settings', 'gf_export', 'gf_help', 'gf_addons', 'gf_system_status' ); | |
$gf_addon_pages = array( 'gravityformscoupons' ); | |
diff --git a/plugins/gravityforms/includes/addon/class-gf-addon.php b/plugins/gravityforms/includes/addon/class-gf-addon.php | |
index e6c6db61603..cf0b7dfed1e 100644 | |
--- a/plugins/gravityforms/includes/addon/class-gf-addon.php | |
+++ b/plugins/gravityforms/includes/addon/class-gf-addon.php | |
@@ -6317,7 +6317,7 @@ public function is_app_settings( $tab = '' ) { | |
*/ | |
public function is_plugin_page() { | |
- return strtolower( rgget( 'page' ) ) == strtolower( $this->_slug ); | |
+ return strtolower( (string) rgget( 'page' ) ) == strtolower( $this->_slug ); | |
} | |
/** | |
diff --git a/plugins/gravityforms/includes/template-library/class-gf-template-library-service-provider.php b/plugins/gravityforms/includes/template-library/class-gf-template-library-service-provider.php | |
index 98c77f7b66d..1299d1e325c 100644 | |
--- a/plugins/gravityforms/includes/template-library/class-gf-template-library-service-provider.php | |
+++ b/plugins/gravityforms/includes/template-library/class-gf-template-library-service-provider.php | |
@@ -115,7 +115,7 @@ private function register_template_library_app() { | |
} | |
public function should_enqueue_library() { | |
- $current_page = trim( strtolower( rgget( 'page' ) ) ); | |
+ $current_page = trim( strtolower( (string) rgget( 'page' ) ) ); | |
$gf_pages = array( 'gf_edit_forms', 'gf_new_form' ); | |
if ( $current_page === 'gf_edit_forms' ) { | |
diff --git a/plugins/gravityforms/includes/template-library/config/class-gf-template-library-config.php b/plugins/gravityforms/includes/template-library/config/class-gf-template-library-config.php | |
index e53b08b8e9b..79bdece2190 100644 | |
--- a/plugins/gravityforms/includes/template-library/config/class-gf-template-library-config.php | |
+++ b/plugins/gravityforms/includes/template-library/config/class-gf-template-library-config.php | |
@@ -66,7 +66,7 @@ public function __construct( GF_Config_Data_Parser $parser, GF_Templates_Store $ | |
} | |
public function should_enqueue() { | |
- $current_page = trim( strtolower( rgget( 'page' ) ) ); | |
+ $current_page = trim( strtolower( (string) rgget( 'page' ) ) ); | |
$gf_pages = array( 'gf_edit_forms', 'gf_new_form' ); | |
return in_array( $current_page, $gf_pages ); | |
diff --git a/plugins/gravityforms/includes/webapi/webapi.php b/plugins/gravityforms/includes/webapi/webapi.php | |
index 4521341f4cb..7bde1223145 100644 | |
--- a/plugins/gravityforms/includes/webapi/webapi.php | |
+++ b/plugins/gravityforms/includes/webapi/webapi.php | |
@@ -788,7 +788,7 @@ public function handle_page_request() { | |
$format = 'json'; | |
} | |
- $schema = strtolower( ( rgget( 'schema' ) ) ); | |
+ $schema = strtolower( (string) rgget( 'schema' ) ); | |
$offset = isset( $_GET['paging']['offset'] ) ? strtolower( $_GET['paging']['offset'] ) : 0; | |
$page_size = isset( $_GET['paging']['page_size'] ) ? strtolower( $_GET['paging']['page_size'] ) : 10; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment