WordPress.org

Plugin Directory

Changeset 1606725


Ignore:
Timestamp:
03/02/17 19:17:35 (9 months ago)
Author:
filme-blog
Message:

Added version 1.0.2.

Location:
wp-keyword-monitor/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-keyword-monitor/trunk/lib/wpkeywordmonitor.php

    r1606719 r1606725  
    7575        $options = get_option(WP_KEYWORD_MONITOR_OPTIONS); 
    7676        $rankChecker = new RankChecker($options["apiKey"], $options["cx"], $options["domain"]); 
     77 
    7778        if (isset($options["maxApiCallsPerDay"])) $maxApiCallsPerDay = $options["maxApiCallsPerDay"]; 
    7879        else $maxApiCallsPerDay = 100; 
     
    8384            else $checkInterval = 1; 
    8485 
    85             $usedApiCalls = 0; 
     86            $usedApiCallsWithDate = get_option(WP_KEYWORD_MONITOR_USED_CALLS, 0); 
     87 
     88            if (isset($usedApiCallsWithDate[date("Y-m-d")])) $usedApiCalls = $usedApiCallsWithDate[date("Y-m-d")]; 
     89            else $usedApiCalls = 0; 
     90 
    8691            foreach ($keywordQuery->getKeywordsWhichNeedACheck($checkInterval, 10) as $keyword) 
    8792            { 
     
    9499                        update_option(WP_KEYWORD_MONITOR_ERROR, null); 
    95100                    } 
    96                     else update_option(WP_KEYWORD_MONITOR_ERROR, array("error" => $keywordResult)); 
     101                    else if ($keywordResult!==null) update_option(WP_KEYWORD_MONITOR_ERROR, array("error" => $keywordResult)); 
    97102 
    98103                    $usedApiCalls++; 
     
    100105                else break; 
    101106            } 
     107 
     108            update_option(WP_KEYWORD_MONITOR_USED_CALLS, array(date("Y-m-d")=>$usedApiCalls)); 
    102109        } 
    103110    } 
  • wp-keyword-monitor/trunk/readme.txt

    r1606719 r1606725  
    55Requires at least: 2.3.1 
    66Tested up to: 4.7 
    7 Stable tag: 1.0.1 
     7Stable tag: 1.0.2 
    88License: GPLv3 
    99License URI: https://www.gnu.org/licenses/gpl.html 
     
    4646== Changelog == 
    4747 
     48= 1.0.2 = 
     49* Fixed behaviour when limiting the maximum api calls. 
     50 
    4851= 1.0.1 = 
    4952* Added some links to support forum and other plugins from me. 
  • wp-keyword-monitor/trunk/wp-keyword-monitor.php

    r1606719 r1606725  
    44Plugin URI: https://wordpress.org/plugins/wp-keyword-monitor 
    55Description: WP Keyword Monitor (KeyMon) is a powerful SEO Tool to track your keyword rankings in google serps. 
    6 Version: 1.0.1 
     6Version: 1.0.2 
    77Author: Patrick Hausmann 
    88Author URI: https://profiles.wordpress.org/filme-blog/ 
     
    2727const WP_KEYWORD_MONITOR_OPTIONS = "wp-keyword-monitor-options"; 
    2828const WP_KEYWORD_MONITOR_ERROR = "wp-keyword-monitor-error"; 
     29const WP_KEYWORD_MONITOR_USED_CALLS = "wp-keyword-monitor-used-calls"; 
    2930const WP_KEYWORD_MONITOR_KEYWORD_CHARTS= "wp-keyword-monitor-keyword-charts"; 
    3031const WP_KEYWORD_MONITOR_TEXT_DOMAIN= "wp-keyword-monitor"; 
Note: See TracChangeset for help on using the changeset viewer.