• Ov3rfly

    (@ov3rfly)


    Code examples in plugin description at “Advanced Features” and in “FAQ” appear to be corrupt and/or have wrong quotes.

    Bad:

    if ( function_exists(‘cookie_accepted’) && cookie_accepted() ) {
        // Your code
    }

    Good:

    if ( function_exists('cookie_accepted') && cookie_accepted() ) {
        // Your code
    }

    Bad:

    [cookie height=”100px” width=”100%” text=”Hi WordPress”] //My code [/cookie]
    

    Good:

    [cookie height="100px" width="100%" text="Hi WordPress"] //My code [/cookie]
    

    Bad:

    Ex. add class=”eucookielaw_exclude” or a comment.
    

    Good:

    Ex. add class="eucookielaw_exclude" or a comment.
    

    Bad:

    if ( !isset( $_COOKIE[‘euCookie’] ) ){ return; }
    

    Good:

    if ( !isset( $_COOKIE['euCookie'] ) ){ return; }
    

    Plugin version 3.1.2

The topic ‘Corrupt code examples in description/FAQ’ is closed to new replies.