WordPress.org

Plugin Directory

Changeset 598735


Ignore:
Timestamp:
09/13/12 20:44:22 (19 months ago)
Author:
joedolson
Message:

Bug fixes: enqueue jQuery, month bug documented

Location:
my-calendar/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • my-calendar/trunk/my-calendar-core.php

    r598242 r598735  
    921921                } 
    922922            } 
    923             if ( @in_array( $id, $array ) || trim ( get_option( 'mc_show_js' ) ) == '' ) {   
     923            if ( @in_array( $id, $array ) || trim ( get_option( 'mc_show_js' ) ) == '' ) { 
    924924                echo $scripting; 
    925925            } 
     
    928928} 
    929929 
     930function mc_enqueue() { 
     931global $wp_query; 
     932    if ( get_option('mc_calendar_javascript') != 1 || get_option('mc_list_javascript') != 1 || get_option('mc_mini_javascript') != 1 || get_option('mc_ajax_javascript') != 1 ) { 
     933        wp_enqueue_script('jquery'); 
     934    } 
     935} 
    930936 
    931937function mc_month_comparison($month) { 
  • my-calendar/trunk/my-calendar.php

    r598560 r598735  
    66Author: Joseph C Dolson 
    77Author URI: http://www.joedolson.com 
    8 Version: 2.0.1 
     8Version: 2.0.2 
    99*/ 
    1010/*  Copyright 2009-2012  Joe Dolson (email : joe@joedolson.com) 
     
    2525*/ 
    2626global $mc_version, $wpdb; 
    27 $mc_version = '2.0.1'; 
     27$mc_version = '2.0.2'; 
    2828 
    2929// Define the tables used in My Calendar 
     
    115115add_action( 'wp_footer','mc_footer_js' ); 
    116116add_action( 'wp_head','my_calendar_fouc' ); 
     117add_action( 'wp_enqueue_scripts','mc_enqueue' ); 
    117118add_action( 'init', 'my_calendar_export_vcal', 200 ); 
    118119// Add filters  
  • my-calendar/trunk/readme.txt

    r598560 r598735  
    5050This calendar branched from [Kieran O'Shea's Calendar plugin](http://wordpress.org/extend/plugins/calendar/) in April 2010. You can import any previous scheduled events from Kieran's calendar into My Calendar. 
    5151 
    52 Languages available: 
     52Languages available: [visit the My Calendar translations page to view](http://translate.joedolson.com/projects/my-calendar). 
    5353 
    5454* American English (Default) 
     
    8989 
    9090== Changelog == 
     91 
     92= 2.0.2 = 
     93 
     94* Bug fix: My Calendar did not enqueue jQuery 
     95* Bug fix: Grid view did not display last day of month if first day of week and last day of month were both Sunday 
    9196 
    9297= 2.0.1 = 
Note: See TracChangeset for help on using the changeset viewer.