Skip to content

Commit 3d17c0e

Browse files
committed
Moved CacheObject() init to wordpress-toolkit
1 parent 070c9d0 commit 3d17c0e

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Release changes are noted on the [Releases](https://github.com/dmhendricks/wordp
8686
#### Branch: `master`
8787

8888
* Extended base class as WordPress Toolkit; simplified base class configuration init
89-
* Moved `is_ajax()` and `prefix()` methods to wordpress-toolkit
89+
* Moved `is_ajax()`/`prefix()` methods, `CacheObject()` init to wordpress-toolkit
9090
* Updated Composer license to conform to new [SPDX](https://spdx.org/licenses/) identifiers
9191
* Added [phpdotenv](https://github.com/etelford/phpdotenv) support ([reference](https://github.com/dmhendricks/wordpress-toolkit/wiki/ToolKit#environment))
9292

app/Core.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function __construct() {
1111

1212
// Example - Remove Emoji code from header
1313
if( $this->get_carbon_plugin_option( 'remove_header_emojicons' ) ) {
14-
if(!$this->is_ajax()) add_filter( 'init', array( $this, 'disable_wp_emojicons' ) );
14+
if( !$this->is_ajax() ) add_filter( 'init', array( $this, 'disable_wp_emojicons' ) );
1515
}
1616

1717
/**

app/Plugin.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
class Plugin extends \WordPress_ToolKit\ToolKit {
1010

1111
public static $textdomain;
12-
protected static $cache;
1312

1413
function __construct() {
1514

@@ -23,9 +22,6 @@ function __construct() {
2322
// Define plugin version
2423
if ( !defined( __NAMESPACE__ . '\VERSION' ) ) define( __NAMESPACE__ . '\VERSION', self::$config->get( 'plugin/meta/Version' ) );
2524

26-
// Initialize ObjectCache
27-
self::$cache = new ObjectCache( self::$config );
28-
2925
// Load dependecies and load plugin logic
3026
register_activation_hook( self::$config->get( 'plugin/identifier' ), array( $this, 'activate' ) );
3127
add_action( 'plugins_loaded', array( $this, 'load_dependencies' ) );

0 commit comments

Comments
 (0)