Hello,
I am getting notices in my logs that the functions in includes/functions.php are calling the functions cookies_accepted() and cookies_set() statically onto the non-static functions of Cookie_Notice class instead of calling the methods of the instance.
Should the function not be like:
**
* Check if cookies are accepted.
*
* @return boolean Whether cookies are accepted
*/
if ( ! function_exists( 'cn_cookies_accepted' ) ) {
function cn_cookies_accepted() {
global $cookie_notice;
return (bool) $cookie_notice->cookies_accepted();
}
}
/**
* Check if cookies are set.
*
* @return boolean Whether cookies are set
*/
if ( ! function_exists( 'cn_cookies_set' ) ) {
function cn_cookies_set() {
global $cookie_notice;
return (bool) $cookie_notice->cookies_set();
}
}
Hope the hear from you.