WordPress.org

Plugin Directory

Changeset 872073


Ignore:
Timestamp:
03/09/14 05:36:38 (3 years ago)
Author:
dmonnier
Message:

[SUPPORT BUGFIX] Fixed shortcode ignoring to the time parameter

Location:
cssable-countdown/tags/1.4
Files:
1 edited
3 copied

Legend:

Unmodified
Added
Removed
  • cssable-countdown/tags/1.4/CSSable-Countdown.php

    r864362 r872073  
    66Author URI: http://wp.dmonnier.com/ 
    77Description: A fully CSS-able jQuery countdown/countup timer available in both widget and shortcode. 
    8 Version: 1.3 
     8Version: 1.4 
    99 
    1010Based on Keith Wood's "Countdown for jQuery" v1.6.3 (http://keith-wood.name/countdown.html). 
  • cssable-countdown/tags/1.4/includes/shortcode.php

    r852228 r872073  
    4646    if ( $atts['date'] ) 
    4747    { 
    48         if ( ($timestamp = strtotime( $atts['date'] )) !== false ) 
     48        if ( ($timestamp = strtotime( $atts['date'] ) ) !== false ) 
    4949        { 
    5050            $instance['month'] = date( 'n', $timestamp ); 
     
    5656    if ( $atts['time'] ) 
    5757    { 
    58         if ( ($timestamp = strtotime( $atts['time'] )) !== false ) 
     58        if ( ($timestamp = strtotime( $atts['time'] ) ) !== false ) 
    5959        { 
    60             $instance['hours'] = date( 'G', $timestamp ); 
     60            $instance['hour'] = date( 'H', $timestamp ); 
    6161            $instance['minutes'] = date( 'i', $timestamp ); 
    6262            $instance['seconds'] = date( 's', $timestamp ); 
  • cssable-countdown/tags/1.4/readme.txt

    r864362 r872073  
    55Requires at least: 2.5 
    66Tested up to: 3.8.1 
    7 Stable tag: 1.3 
     7Stable tag: 1.4 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    174174== Changelog == 
    175175 
     176= 1.4 = 
     177* [SUPPORT BUGFIX] Fixed shortcode ignoring to the `time` parameter 
     178 
    176179= 1.3 = 
    177180* Fixed `media` property of the various `wp_enqueue_style()`s to default to `'all'` instead of `false` 
     
    232235== Upgrade Notice == 
    233236 
     237= 1.4 = 
     238Earlier versions of the shortcode will ignore the `time` parameter.  Please upgrade if you use the shortcode. 
     239 
    234240= 1.3 = 
    235241Earlier versions will fail HTML5 validation due to malformed CSS link tag. 
Note: See TracChangeset for help on using the changeset viewer.