Skip to content

Commit

Permalink
Adding class_exists check. wpsharks/comet-cache#151
Browse files Browse the repository at this point in the history
  • Loading branch information
JasWSInc committed Jun 12, 2014
1 parent 6d3380c commit 2b46367
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions quick-cache-pro/includes/share.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,22 @@
if(!defined('WPINC')) // MUST have WordPress.
exit('Do NOT access this file directly: '.basename(__FILE__));

/**
* Quick Cache (Shared Methods)
*
* @package quick_cache\share
* @since 14xxxx Reorganizing class members.
*/
class share // Shared between {@link advanced_cache} and {@link plugin}.
if(!class_exists('\\'.__NAMESPACE__.'\\share'))
{
public function __construct()
/**
* Quick Cache (Shared Methods)
*
* @package quick_cache\share
* @since 14xxxx Reorganizing class members.
*/
class share // Shared between {@link advanced_cache} and {@link plugin}.
{
// @TODO Bring shareable methods into this class.
public function __construct()
{
// @TODO Bring shareable methods into this class.
}
}
}

$GLOBALS[__NAMESPACE__.'__share'] = new share();
$GLOBALS[__NAMESPACE__.'__share'] = new share();
}
}

0 comments on commit 2b46367

Please sign in to comment.