Plugin Directory

Changeset 1835710


Ignore:
Timestamp:
03/07/2018 08:35:31 PM (8 years ago)
Author:
nre
Message:
  • fatal error when installing plugin because hook-function „add“ requires 6 instead of 4 parameters
  • renamed debug-functions globally
  • changed short description text
Location:
cookie-optin-interface/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cookie-optin-interface/trunk/coii.php

    r1835698 r1835710  
    1616 * Plugin Name:       Cookie-OptIn-Interface
    1717 * Plugin URI:        https://www.nickyreinert.de/coii
    18  * Description:       This is a short description of what the plugin does. It's displayed in the WordPress admin area.
     18 * Description:       Allow users to decide whether being tracked or not
    1919 * Version:           1.0.0
    2020 * Author:            Nicky Reinert
  • cookie-optin-interface/trunk/includes/class-coii-loader.php

    r1835698 r1835710  
    140140     * @param     object        $component      A reference to the instance of the object on which the shortcode is defined.
    141141     * @param     string        $callback       The name of the function that defines the shortcode.
     142
    142143     */
    143144    public function add_shortcode( $tag, $component, $callback) {
    144         $this->shortcodes = $this->add( $this->shortcodes, $tag, $component, $callback );
     145
     146        $this->shortcodes = $this->add( $this->shortcodes, $tag, $component, $callback, NULL, NULL );
    145147    }
    146148
  • cookie-optin-interface/trunk/public/class-coii-public.php

    r1835698 r1835710  
    8585    public function show_coii_dialogue() {
    8686
    87         debug('showing dialogue');
     87        debug_coii('showing dialogue');
    8888
    8989        wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/coii-public.css', array(), $this->version, 'all' );
     
    106106        if(!isset($_COOKIE['coii_allow_tracking_pixel'])) {
    107107
    108             debug('control cookie not set');
     108            debug_coii('control cookie not set');
    109109
    110110            $this->show_coii_dialogue();
     
    112112        } else {
    113113
    114             debug('control cookie is set');
     114            debug_coii('control cookie is set');
    115115
    116116            if ($_COOKIE['coii_allow_tracking_pixel'] === 'yes') {
    117117
    118                 debug('enabling tracking by setting up the pixel');
     118                debug_coii('enabling tracking by setting up the pixel');
    119119
    120120                echo '<script>'.$tracking_pixel.'</script>';
     
    122122            } else {
    123123
    124                 debug('disabled tracking, no action to take');
     124                debug_coii('disabled tracking, no action to take');
    125125
    126126            }
Note: See TracChangeset for help on using the changeset viewer.