Skip to content

Commit

Permalink
formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
Hai Zheng committed Sep 4, 2024
1 parent 9fd2245 commit d6ac28d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/esi.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ public function sub_widget_block($instance, $widget, $args)
public function sub_admin_bar_block()
{
global $wp_admin_bar;

if (!is_admin_bar_showing() || !is_object($wp_admin_bar)) {
return;
}
Expand Down
6 changes: 1 addition & 5 deletions src/object-cache.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,7 @@ private function _connect()
$failed = true;
}
restore_error_handler();
}
/**
* Connect to Memcached
*/
else {
} else { // Connect to Memcached
if ($this->_cfg_persistent) {
$this->_conn = new \Memcached($this->_get_mem_id());

Expand Down
2 changes: 1 addition & 1 deletion thirdparty/woocommerce.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ public function add_review($unused, $comment_approved, $commentdata)
if (!isset($wp_widget_factory->widgets['WC_Widget_Recent_Reviews'])) {
return;
}

$recent_reviews = $wp_widget_factory->widgets['WC_Widget_Recent_Reviews'];
if (!is_null($recent_reviews)) {
do_action('litespeed_tag_add_widget', $recent_reviews->id);
Expand Down

0 comments on commit d6ac28d

Please sign in to comment.