V2.2 Plugin warnings on php7 and wp4.8
-
Php7 is more syntax restrictive and throws 2 warnings on
function frontend_sgr_script() {
if (did_action(“login_init”) > 0 || function_exists(is_account_page) || function_exists(bp_get_signup_page) || (is_single() && comments_open()) && !is_user_logged_in()) {that is_account_page and bp_get_signup_page are not defined.
These arguments should be quoted as strings, like:
function frontend_sgr_script() {
if (did_action(“login_init”) > 0 || function_exists(‘is_account_page’) || function_exists(‘bp_get_signup_page’) || (is_single() && comments_open()) && !is_user_logged_in()) {
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘V2.2 Plugin warnings on php7 and wp4.8’ is closed to new replies.