• Resolved Grant Norwood

    (@grantnorwood)


    There is a Strict Standards PHP warning coming from api.php, line 63. The warning is regarding only passing variables by reference, where you are passing a function.

    Please consider changing line 63 in api.php from:

    $result = wp_remote_retrieve_body(wp_remote_get($url, array('timeout' => 1)));

    to:

    $get_result = wp_remote_get($url, array('timeout' => 1));
    $result = wp_remote_retrieve_body($get_result);

    This should clear up the warning for those developers who develop with Strict Standards mode enabled.

    Thank you so much, this is a great plugin!
    Grant

    https://ww.wp.xz.cn/plugins/geoip-detect/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Resolve Strict Standards PHP Warning’ is closed to new replies.