The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. etfb
    Posted 3 years 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;


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Web Fonts Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.