WordPress.org

Plugin Directory

Changeset 598560


Ignore:
Timestamp:
09/13/12 16:43:04 (20 months ago)
Author:
joedolson
Message:

2.0.1: Bug fixes to today's events list, single event iCal download, default settings.

Location:
my-calendar/trunk
Files:
7 edited

Legend:

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

    r598242 r598560  
    118118            $sql = "UPDATE " . my_calendar_table() . " SET event_category=1 WHERE event_category=$cat_ID"; 
    119119            $cal_results = $mcdb->query($sql); 
     120            mc_delete_cache(); 
    120121        } 
    121122        if ( get_option('mc_default_category') == $cat_ID ) {  
     
    139140        'category_private'=>( (isset( $_POST['category_private'] ))?1:0 ) 
    140141        ); 
    141         $where = array( 
    142         'category_id'=>(int) $_POST['category_id'] 
    143         );   
     142        $where = array( 'category_id'=>(int) $_POST['category_id'] );    
    144143        $append = ''; 
    145144        if ( isset($_POST['mc_default_category']) ) { 
     
    148147        }        
    149148        $results = $mcdb->update( my_calendar_categories_table(), $update, $where, $formats, '%d' ); 
     149        mc_delete_cache(); 
    150150        if ($results) { 
    151151            echo "<div class=\"updated\"><p><strong>".__('Category edited successfully.','my-calendar')." $append</strong></p></div>"; 
  • my-calendar/trunk/my-calendar-export.php

    r598242 r598560  
    2222function my_calendar_generate_vcal( $event_id ) { 
    2323    global $mc_version; 
    24         $mc_id = (int) $_GET['mc_id']; 
    25         $my_calendar_body .= mc_get_event( $mc_id,'object' ); 
     24        $mc_id = (int) str_replace( 'mc_','',$_GET['vcal']); 
     25        $event = mc_get_event( $mc_id,'object' ); 
    2626        // need to modify date values to match real values using date above 
    2727    $array = event_as_array($event, 'ical' ); 
  • my-calendar/trunk/my-calendar-install.php

    r598242 r598560  
    370370    add_option('mc_date_format',get_option('date_format') ); 
    371371    add_option('mc_templates', array( 
    372         'title'=>'{details}', 
     372        'title'=>'{title}', 
    373373        'link'=>'{title}', 
    374374        'grid'=>$grid_template, 
  • my-calendar/trunk/my-calendar-limits.php

    r598242 r598560  
    6464function mc_select_author( $author, $type='event' ) { 
    6565$author = urldecode($author); 
     66$key = ''; 
    6667if ( $author == '' || $author == 'all' || $author == 'default' || $author == null ) { return; } 
    6768global $wpdb; 
  • my-calendar/trunk/my-calendar-widgets.php

    r598242 r598560  
    1212    $the_substitute = $instance['my_calendar_no_events_text']; 
    1313    $the_category = ($instance['my_calendar_today_category']=='')?'default':esc_attr($instance['my_calendar_today_category']); 
    14     $author = ( !isset($instance['my_calendar_today_author']) || $instance['my_calendar_today_author']=='')?'default':esc_attr($instance['my_calendar_today_author']); 
     14    $author = ( !isset($instance['my_calendar_today_author']) || $instance['my_calendar_today_author']=='')?'all':esc_attr($instance['my_calendar_today_author']); 
    1515    $widget_link = (!empty($instance['my_calendar_today_linked']) && $instance['my_calendar_today_linked']=='yes')?get_option('mc_uri'):''; 
    1616    $widget_title = empty($the_title) ? '' : $the_title; 
     
    4747    <textarea class="widefat" rows="8" cols="20" id="<?php echo $this->get_field_id('my_calendar_today_template'); ?>" name="<?php echo $this->get_field_name('my_calendar_today_template'); ?>"><?php echo $widget_template; ?></textarea> 
    4848    </p> 
    49     <?php if ( get_option('mc_uri') == '' ) { $disabled = " disabled='disabled'"; $warning = _e('Add calendar URL to use this option.','my-calendar');  } else { ""; } ?> 
     49    <?php if ( get_option('mc_uri') == '' ) { $disabled = " disabled='disabled'"; $warning = _e('Add calendar URL to use this option.','my-calendar');  } else { $disabled = $warning = ""; } ?> 
    5050    <p> 
    5151    <label for="<?php echo $this->get_field_id('my_calendar_today_linked'); ?>"><?php _e('Link widget title to calendar:','my-calendar'); ?></label> <select<?php echo $disabled; ?> id="<?php echo $this->get_field_id('my_calendar_today_linked'); ?>" name="<?php echo $this->get_field_name('my_calendar_today_linked'); ?>"> 
     
    470470 
    471471// Widget todays events 
    472 function my_calendar_todays_events($category='default',$template='default',$substitute='',$author='default') { 
     472function my_calendar_todays_events($category='default',$template='default',$substitute='',$author='all') { 
    473473    $caching = ( get_option('mc_caching_enabled') == 'true' )?true:false; 
    474474    $todays_cache = ($caching)? get_transient('mc_todays_cache') :''; 
  • my-calendar/trunk/my-calendar.php

    r598242 r598560  
    66Author: Joseph C Dolson 
    77Author URI: http://www.joedolson.com 
    8 Version: 2.0.0 
     8Version: 2.0.1 
    99*/ 
    1010/*  Copyright 2009-2012  Joe Dolson (email : joe@joedolson.com) 
     
    2525*/ 
    2626global $mc_version, $wpdb; 
    27 $mc_version = '2.0.0'; 
     27$mc_version = '2.0.1'; 
    2828 
    2929// Define the tables used in My Calendar 
  • my-calendar/trunk/readme.txt

    r598242 r598560  
    9090== Changelog == 
    9191 
    92 = 2.0 = 
     92= 2.0.1 = 
     93 
     94* Bug fix: Error in default settings for event titles. 
     95* Bug fix: Single Event iCal export broken 
     96* Bug fix: Today's Events shortcode broken if author not specified 
     97* Change: Deleting or updating categories now refreshes the cache. 
     98 
     99= 2.0.0 = 
    93100 
    94101* Completely re-written database model for events. 
Note: See TracChangeset for help on using the changeset viewer.