Skip to content

Commit

Permalink
Merge pull request #591 from Codeinwp/fix/banner-widgets
Browse files Browse the repository at this point in the history
fix: Optimole banner appearing in the admin inside widget iframes
  • Loading branch information
abaicus authored Jul 5, 2023
2 parents acfaaa6 + 5835628 commit dbf7719
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ public function init() {
* @return void
*/
public function banner() {
if ( defined( 'REST_REQUEST' ) ) {
return;
}

$has_banner = $this->settings->get( 'banner_frontend' ) === 'enabled';

if ( ! $has_banner ) {
Expand Down

0 comments on commit dbf7719

Please sign in to comment.