Fix for Default Value after Google Quota Error
-
When there is a profile quota error, the plugin shows default value. It is due to a faulty return around line 560 of the code. You can replace the code with the following lines to show last retrieved value from the Google Analytics.
============================// disable this piece. first check if we have an old value. If we have, then use it. //return $options['gapp_defaultval']; // ========= fixed code ========= // If we have an old value let's put that instead of the default one in case of an error $meta_value = get_post_meta($postID, '_gapp_post_views', true); if ($meta_value !== false) { $default_value = $meta_value; } set_transient($gaTransName, $default_value, 60 * $options['gapp_cache']); // ========= fixed code =========
- The topic ‘Fix for Default Value after Google Quota Error’ is closed to new replies.