Skip to content

Commit

Permalink
Merge pull request #2334 from the-events-calendar/fix/TEC-5086_deprec…
Browse files Browse the repository at this point in the history
…ated_notice

Fix warning about deprecated ability
  • Loading branch information
pattihis authored Jan 8, 2025
2 parents 2930d26 + 989abbf commit f9fb8e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changelog/fix-TEC-5086_deprecated_notice
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Resolve warning about deprecation of passing null to version_compare function.
2 changes: 2 additions & 0 deletions src/Tribe/PUE/Checker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 '';
}
}
}
Expand Down

0 comments on commit f9fb8e5

Please sign in to comment.