diff --git a/changelog/fix-TEC-5086_deprecated_notice b/changelog/fix-TEC-5086_deprecated_notice new file mode 100644 index 000000000..aba867a0a --- /dev/null +++ b/changelog/fix-TEC-5086_deprecated_notice @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Resolve warning about deprecation of passing null to version_compare function. diff --git a/src/Tribe/PUE/Checker.php b/src/Tribe/PUE/Checker.php index 486bd87c5..5ffb583b6 100755 --- a/src/Tribe/PUE/Checker.php +++ b/src/Tribe/PUE/Checker.php @@ -1641,6 +1641,8 @@ public function get_installed_version() { $all_plugins = get_plugins(); if ( array_key_exists( $this->get_plugin_file(), $all_plugins ) && array_key_exists( 'Version', $all_plugins[ $this->get_plugin_file() ] ) ) { return $all_plugins[ $this->get_plugin_file() ]['Version']; + } else { + return ''; } } }