WordPress.org

Ready to get started?Download WordPress

Forums

Google Web Fonts Manager
Fix for warning message (1 post)

  1. etfb
    Member
    Posted 1 year ago #

    This plugin puts a lot of messages into the debug.log as a result of a poorly-tested function. This is the fix, to replace the function at line 42 of version 1.4.4 of google-web-fonts-manager.php. Apologies for the generic variable names; I didn't have time to fully comprehend the purpose of the function, since my goal is just to produce code that will remove the debug spam without changing functionality at all:

    protected function get_option($setting) {
            $new = $this->_options[$setting];
    	    if (is_array($new)) {
                $base = get_option($setting);
    	        $options = $base ? array_merge($new, $base) : $new;
    	    } else {
    	        $options = get_option($setting, $new);
    	    }
    
    	    return $options;
    	}

    http://wordpress.org/extend/plugins/google-web-fonts-manager-plugin/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.