-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGS-7497] fix wp version checker (#31)
* move pantheon wp version check to a functions helper file * require the new version in the Pantheon namespace * test that the function exists this is a bit of a vanity test because I wasn't able to successfully reproduce the failure state for this * bump the pantheon mu plugin version didn't get updated after the last update * linting fixes * update the test name * remove a test that isn't really helpful
- Loading branch information
1 parent
7d1d919
commit dbe012b
Showing
5 changed files
with
38 additions
and
22 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
/** | ||
* Pantheon mu-plugin helper functions | ||
* | ||
* @package pantheon | ||
*/ | ||
|
||
namespace Pantheon; | ||
|
||
/** | ||
* Helper function that returns the current WordPress version. | ||
* | ||
* @return string | ||
*/ | ||
function _pantheon_get_current_wordpress_version(): string { | ||
include ABSPATH . WPINC . '/version.php'; | ||
return $wp_version; // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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