WordPress.org

Ready to get started?Download WordPress

Forums

WP Google Fonts
Undefined index Notice/Error (2 posts)

  1. ken90
    Member
    Posted 1 year ago #

    Whenever I place "define('WP_DEBUG', true);" in wp-config.php I get undefined index notice. Is there any quick way of solving this problem? I know it's not a critical bug, but it would be great to have it solved.

    Notice: Undefined index: googlefonts_font1 in .... google-fonts.php on line 802
    Notice: Undefined index: googlefonts_font2 in .... google-fonts.php on line 802

    http://wordpress.org/extend/plugins/wp-google-fonts/

  2. Aaron Brown
    Member
    Posted 1 year ago #

    Thanks @ken90. We'll address this in the upcoming release. In the mean time, if you want you can edit the following line, which should take care of the issue.

    On line 802 replace:

    if($this->options[$option]){

    with:

    if(isset($this->options[$option]) && $this->options[$option]){

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic