Plugin Directory

Changeset 2164181


Ignore:
Timestamp:
09/27/2019 07:08:23 AM (7 years ago)
Author:
cookiepro
Message:

Followed coding standards from WP engine

Location:
cookiepro/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cookiepro/trunk/class-cookiepro.php

    r2101138 r2164181  
    33 * Plugin Name: CookiePro
    44 * Plugin URI: http://www.onetrust.com/
    5  * Version: 1.0.0
     5 * Version: 1.0.1
    66 * Author: OneTrust, Llc
    77 * Author URI: https://www.onetrust.com/products/cookies/
     
    1313
    1414/*
    15   Copyright 2018 OneTrust
     15    Copyright 2018 OneTrust
    1616
    1717    This program is free software; you can redistribute it and/or modify
     
    6464    public function dashboardnotices() {
    6565        global $pagenow;
     66        $screen = get_current_screen();
    6667        if ( ! get_option( $this->plugin->db_welcome_dismissed_key ) ) {
    67             if ( ! ( 'options-general.php' === $pagenow && isset( $_GET['page'] ) && 'cookiepro' === $_GET['page'] ) ) {
     68            if ( 'options-general.php' !== $pagenow && 'settings_page_cookiepro' !== $screen->id ) {
    6869                $setting_page = admin_url( 'options-general.php?page=' . $this->plugin->name );
    6970                include_once $this->plugin->folder . '/views/dashboard-notices.php';
     
    137138            return;
    138139        }
    139         $allowed_html = [
    140             'a'      => [
    141                 'href'  => [],
    142                 'title' => [],
    143             ],
    144             'br'     => [],
    145             'em'     => [],
    146             'strong' => [],
    147             'script' => [
    148                 'src'     => [],
    149                 'type'    => [],
    150                 'charset' => [],
    151             ],
    152         ];
     140        $allowed_html = array(
     141            'a'      => array(
     142                'href'  => array(),
     143                'title' => array(),
     144            ),
     145            'br'     => array(),
     146            'em'     => array(),
     147            'strong' => array(),
     148            'script' => array(
     149                'src'     => array(),
     150                'type'    => array(),
     151                'charset' => array(),
     152            ),
     153        );
    153154        echo wp_unslash( $myopt );
    154 
    155155    }
    156156    /** Frontendheader functions. */
  • cookiepro/trunk/readme.txt

    r2100481 r2164181  
    33Tags: Cookie consent, Cookie compliance, GDPR, Cookie law, EU privacy directive, cookie notice, code, content, css, facebook pixel, footer, footer code, footer scripts, footers, google analytics, head, header, header code, header scripts, headers, insert, insert code, insert scripts, js, meta, meta tags, scripts, wpmu, cookies, cookie consent, cookie banner, preference center, privacy, cookie compliance, cookie notice, privacy policy, cookie policy, cookie script, google tag manager
    44Requires at least: 3.6
    5 Tested up to: 5.2.1
    6 Stable tag: 1.0.0
     5Tested up to: 5.2.3
     6Stable tag: 1.0.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.