Skip to content

Commit

Permalink
Version 1.0.1 - January 23, 2024
Browse files Browse the repository at this point in the history
+	Improved sanitization and output escaping.
+	Changed constant EACDOOJIGGER_OBJECT_CACHE to EAC_OBJECT_CACHE.
  • Loading branch information
KBurkholder committed Jan 24, 2024
1 parent d08bc4a commit 1a91b93
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
.svn
10 changes: 5 additions & 5 deletions Extensions/class.eacObjectCache.extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function admin_options_settings(): void

if ($this->checkForInstall('admin') === true && $this->checkForInstall('source') === true)
{
$default = $this->varPost('_btnCacheInstall') ?: ((defined('EACDOOJIGGER_OBJECT_CACHE')) ? 'Install' : 'Uninstall');
$default = $this->varPost('_btnCacheInstall') ?: ((defined('EAC_OBJECT_CACHE')) ? 'Install' : 'Uninstall');
$default = ($default=='Install') ? 'Uninstall' : 'Install';
$this->registerExtensionOptions( [$this->registerAs,$this->registerTab],
[
Expand All @@ -136,7 +136,7 @@ public function admin_options_settings(): void
);
}

if (defined('EACDOOJIGGER_OBJECT_CACHE'))
if (defined('EAC_OBJECT_CACHE'))
{
global $wp_object_cache;
$stats = $wp_object_cache->getStats();
Expand Down Expand Up @@ -481,7 +481,7 @@ public function initialize()
{
if ( ! parent::initialize() ) return; // disabled

if (defined('EACDOOJIGGER_OBJECT_CACHE'))
if (defined('EAC_OBJECT_CACHE'))
{
global $wp_object_cache;
$wp_object_cache->display_stats = $this->get_option('object_cache_stats');
Expand Down Expand Up @@ -546,7 +546,7 @@ public function checkForInstall($check='all')
// check 3rd-party object cache
if ($check == 'all' || $check == 'existing')
{
if (file_exists(WP_CONTENT_DIR.'/object-cache.php') && !defined('EACDOOJIGGER_OBJECT_CACHE'))
if (file_exists(WP_CONTENT_DIR.'/object-cache.php') && !defined('EAC_OBJECT_CACHE'))
{
$plugin_data = get_plugin_data( WP_CONTENT_DIR.'/object-cache.php', true );
if ( ! $plugin_data['Title'] ) $plugin_data['Title'] = '3rd Party Object Cache';
Expand Down Expand Up @@ -648,7 +648,7 @@ public function install_object_cache($action)
*/
public function adminVersionUpdate($curVersion,$newVersion)
{
if (defined('EACDOOJIGGER_OBJECT_CACHE'))
if (defined('EAC_OBJECT_CACHE'))
{
$this->install_object_cache('update');
}
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ You should receive a copy of the GNU General Public License along with this prog
#### Version 1.0.1 - January 23, 2024

+ Improved sanitization and output escaping.
+ Changed constant EACDOOJIGGER_OBJECT_CACHE to EAC_OBJECT_CACHE.

#### Version 1.0.0 - December 9, 2023

Expand Down
2 changes: 1 addition & 1 deletion src/wp-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @subpackage Cache
*/

defined( 'EACDOOJIGGER_OBJECT_CACHE' ) || exit;
defined( 'EAC_OBJECT_CACHE' ) || exit;

/**
* Sets up Object Cache Global and assigns it.
Expand Down

0 comments on commit 1a91b93

Please sign in to comment.