Notice from Pro 7.07 version

New home Forums Pro Add-on Installing and Updating Notice from Pro 7.07 version

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36800
    tcghs
    Member

    Notice: Undefined index: use_fontawesome in /home1/tcghsnet/public_html/wp-content/plugins/wp-google-maps-pro/wp-google-maps-pro.php on line 10499

    Thanks,
    Mike

    #36824
    Perry
    Moderator

    Hi Mike

    Thank you for getting in touch and thanks for reporting this!

    I’ve patched this issue in our master code, if you’d like to get this fixed before we release the patch please go to line 10488 and remove the function wpgmza_enqueue_fontawesome and replace it with this:

    function wpgmza_enqueue_fontawesome()
    {
    $settings = get_option(‘WPGMZA_OTHER_SETTINGS’);

    if($settings)
    $settings = maybe_unserialize($settings);
    else
    $settings = array(
    ‘use_fontawesome’ => ‘5.*’
    );

    $version = (isset($settings[‘use_fontawesome’]) ? $settings[‘use_fontawesome’] : ‘4.*’);

    switch($version)
    {
    case ‘5.*’:
    wp_enqueue_style(‘fontawesome’, ‘https://use.fontawesome.com/releases/v5.0.9/css/all.css’);
    break;

    case ‘none’:
    break;

    default:
    wp_enqueue_style(‘fontawesome’, plugins_url(‘css/font-awesome.min.css’, __FILE__));
    break;
    }
    }

    Does that help?

    Kind regards
    – Perry

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.