• Resolved shanemac10

    (@shanemac10)


    Deprecated: Automatic conversion of false to array is deprecated in /wp-content/plugins/popup-maker/classes/Utils/Options.php on line 120


    https://developer.ww.wp.xz.cn/reference/functions/get_option/#return
    If there is no option in the database, boolean false is returned.

    // First let’s grab the current settings
    $options = get_option( self::$prefix . ‘settings’ ); // <– returns false

    // Next let’s try to update the value
    $options[ $key ] = $value; // <– treating like an array without checking

    • This topic was modified 10 months, 4 weeks ago by shanemac10.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Deprecated: Automatic conversion of false to array is deprecated Options.php’ is closed to new replies.