Skip to content

Commit

Permalink
feat!: Remove Timmy::VERSION constant
Browse files Browse the repository at this point in the history
* fix: Remove Timber version check from tests

* feat!: Remove Timmy::VERSION constant
  • Loading branch information
gchtr authored May 1, 2024
1 parent 2ec5254 commit 031548b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
7 changes: 0 additions & 7 deletions lib/Timmy.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@
* @package Timmy
*/
class Timmy {
/**
* Timmy version.
*
* @var string
*/
const VERSION = '1.0.0';

/**
* Image sizes that can be selected in the backend.
*
Expand Down
7 changes: 1 addition & 6 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@
function _manually_load_plugin() {
require dirname( __FILE__ ) . '/../vendor/autoload.php';

if (version_compare(Timber\Timber::$version, '2.0.0', '>=')) {
Timber\Timber::init();
} else {
new Timber\Timber();
}

Timber\Timber::init();
Timmy::init();

require dirname( __FILE__ ) . '/../wp-content/plugins/advanced-custom-fields/acf.php';
Expand Down

0 comments on commit 031548b

Please sign in to comment.