Plugin Directory

Changeset 620618


Ignore:
Timestamp:
11/03/2012 06:43:35 AM (13 years ago)
Author:
bdoga
Message:

Fixed Issue that resulted in events from the wrong day being returned to the widget.

Location:
today-in-history/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • today-in-history/trunk/readme.txt

    r589629 r620618  
    77Requires at least: 3.0
    88Tested up to: 3.4.1
    9 Stable tag: 0.4.2
     9Stable tag: 0.5
    1010
    11 Today In History provides a widget that displays notable events that have occurred previously on this day in history.
     11Today In History provides a simple widget that displays notable events that have occurred previously on this day in history.
    1212
    1313== Description ==
     
    7171== Changelog ==
    7272
     73= 0.5 [2012-11-03] =
     74* Fixed and Issue that caused the results to not return the correct day
     75
    7376= 0.4.2 [2012-08-23] =
    7477* Updated for Wordpress 3.4.1
  • today-in-history/trunk/today_in_history.php

    r589629 r620618  
    1919    curl_setopt($curl, CURLOPT_URL, $url);
    2020    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    21     curl_setopt($curl, CURLOPT_USERAGENT, "Today In History Widget v0.4.2");
     21    curl_setopt($curl, CURLOPT_USERAGENT, "Today In History Widget v0.5");
    2222    $response = curl_exec($curl);
    2323    curl_close($curl);
     
    100100                }
    101101               
    102                 //echo $key;//c81d8d19f48f4fe33b9126fde9b7215d
     102                //echo $key;//c81d8d19f48f4fe33b9126fde9b7215d//05aedcf93a860f6ad063ab67d147d3af
    103103               
    104104                if($key != 0 && strlen($key) == 32){
     
    116116                        }
    117117                    }
    118                     $history_url = "http://www.macnative.com/history/?tihKey=".$key."&day=".strftime('%j');
     118                    $history_url = "http://www.macnative.com/history/?tihKey=".$key."&time=".strftime('%s');
    119119                    if($tih_cats != ""){
    120120                        $history_url .= "&cats=".$tih_cats;
Note: See TracChangeset for help on using the changeset viewer.