Skip to content

Commit e668dfd

Browse files
authored
Merge pull request #58 from Angrycreative/bugfix/do-not-post-on-wp-admin
Should not load on WP Admin anymore
2 parents 1f05dce + 4261271 commit e668dfd

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: johansylvan, angrycreative, kylegard, killua99, melindrea, victorc
33
Tags: custom, cookie, message, consent, cookie bar, cookie compliance, cookie law, cookie notice, cookie notification, cookie notification bar, cookie notify, cookies, eu, eu cookie, eu cookie law, notice, notification, notify, custom cookie message, WPML, Polylang, Multisite, multisites, local storage
44
Requires at least: 4.9
55
Tested up to: 5.2.3
6-
Stable tag: 2.4.8
6+
Stable tag: 2.4.9
77
Requires PHP: 5.6+
88

99
License: GPLv2 or later

src/class-main.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Main {
2323
*
2424
* @var string
2525
*/
26-
protected $version = '2.4.8';
26+
protected $version = '2.4.9';
2727

2828
/**
2929
* Store singlenton CustomCookieMessage\Main.
@@ -300,6 +300,10 @@ public function ccm_handle_scripts() {
300300
* Template notice.
301301
*/
302302
public function display_frontend_notice() {
303+
if ( is_admin() ) {
304+
return;
305+
}
306+
303307
$options = get_option( 'custom_cookie_message' );
304308

305309
if ( defined( 'ICL_LANGUAGE_CODE' ) ) {

0 commit comments

Comments
 (0)