Fix for warning message
-
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://ww.wp.xz.cn/extend/plugins/google-web-fonts-manager-plugin/
The topic ‘Fix for warning message’ is closed to new replies.