My Calendar - Version 2.5.15

Version Description

  • Bug fix: Jumpbox rendered October as January due to unneeded character replacement
Download this release

Release Info

Developer joedolson
Plugin Icon 128x128 My Calendar
Version 2.5.15
Comparing to
See all releases

Code changes from version 2.5.14 to 2.5.15

Files changed (3) hide show
  1. my-calendar-output.php +4 -3
  2. my-calendar.php +2 -2
  3. readme.txt +5 -1
my-calendar-output.php CHANGED
@@ -515,7 +515,6 @@ function mc_build_date_switcher( $type = 'calendar', $cid = 'all', $time = 'mont
515
  global $wpdb;
516
  $mcdb = $wpdb;
517
  $c_month = isset( $date['month'] ) ? $date['month'] : date( "n", current_time( 'timestamp' ) );
518
- $c_month = str_replace( '0', '', $c_month );
519
  $c_year = isset( $date['year'] ) ? $date['year'] : date( "Y", current_time( 'timestamp' ) );
520
  $c_day = isset( $date['day'] ) ? $date['day'] : date( "j", current_time( 'timestamp' ) );
521
  if ( get_option( 'mc_remote' ) == 'true' && function_exists( 'mc_remote_db' ) ) {
@@ -555,8 +554,10 @@ function mc_build_date_switcher( $type = 'calendar', $cid = 'all', $time = 'mont
555
  // We build the months in the switcher
556
  $date_switcher .= '
557
  <label class="maybe-hide" for="' . $cid . '-month">' . __( 'Month', 'my-calendar' ) . ':</label> <select id="' . $cid . '-month" name="month">' . "\n";
558
- for ( $i = 1; $i <= 12; $i ++ ) {
559
- $date_switcher .= "<option value='$i'" . selected( $i, $c_month, false ) . '>' . date_i18n( 'F', mktime( 0, 0, 0, $i, 1 ) ) . '</option>' . "\n";
 
 
560
  }
561
  $date_switcher .= '</select>' . "\n" . '
562
  <label class="maybe-hide" for="' . $cid . '-year">' . __( 'Year', 'my-calendar' ) . ':</label> <select id="' . $cid . '-year" name="yr">' . "\n";
515
  global $wpdb;
516
  $mcdb = $wpdb;
517
  $c_month = isset( $date['month'] ) ? $date['month'] : date( "n", current_time( 'timestamp' ) );
 
518
  $c_year = isset( $date['year'] ) ? $date['year'] : date( "Y", current_time( 'timestamp' ) );
519
  $c_day = isset( $date['day'] ) ? $date['day'] : date( "j", current_time( 'timestamp' ) );
520
  if ( get_option( 'mc_remote' ) == 'true' && function_exists( 'mc_remote_db' ) ) {
554
  // We build the months in the switcher
555
  $date_switcher .= '
556
  <label class="maybe-hide" for="' . $cid . '-month">' . __( 'Month', 'my-calendar' ) . ':</label> <select id="' . $cid . '-month" name="month">' . "\n";
557
+ for ( $i = 1; $i <= 12; $i ++ ) {
558
+ $test = str_pad( $i, 2, '0', STR_PAD_LEFT );
559
+ $c_month = str_pad( $c_month, 2, '0', STR_PAD_LEFT );
560
+ $date_switcher .= "<option value='$i'" . selected( $test, $c_month, false ) . '>' . date_i18n( 'F', mktime( 0, 0, 0, $i, 1 ) ) . '</option>' . "\n";
561
  }
562
  $date_switcher .= '</select>' . "\n" . '
563
  <label class="maybe-hide" for="' . $cid . '-year">' . __( 'Year', 'my-calendar' ) . ':</label> <select id="' . $cid . '-year" name="yr">' . "\n";
my-calendar.php CHANGED
@@ -7,7 +7,7 @@ Author: Joseph C Dolson
7
  Author URI: http://www.joedolson.com
8
  Text Domain: my-calendar
9
  Domain Path: lang
10
- Version: 2.5.14
11
  */
12
  /* Copyright 2009-2017 Joe Dolson (email : joe@joedolson.com)
13
 
@@ -30,7 +30,7 @@ if ( ! defined( 'ABSPATH' ) ) {
30
  } // Exit if accessed directly
31
 
32
  global $mc_version, $wpdb;
33
- $mc_version = '2.5.14';
34
 
35
  register_activation_hook( __FILE__, 'mc_plugin_activated' );
36
  register_deactivation_hook( __FILE__, 'mc_plugin_deactivated' );
7
  Author URI: http://www.joedolson.com
8
  Text Domain: my-calendar
9
  Domain Path: lang
10
+ Version: 2.5.15
11
  */
12
  /* Copyright 2009-2017 Joe Dolson (email : joe@joedolson.com)
13
 
30
  } // Exit if accessed directly
31
 
32
  global $mc_version, $wpdb;
33
+ $mc_version = '2.5.15';
34
 
35
  register_activation_hook( __FILE__, 'mc_plugin_activated' );
36
  register_deactivation_hook( __FILE__, 'mc_plugin_deactivated' );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.joedolson.com/donate/
4
  Tags: calendar, dates, times, event, events, scheduling, schedule, event manager, event calendar, class, concert, venue, location, box office, tickets, registration
5
  Requires at least: 4.4
6
  Tested up to: 4.8
7
- Stable tag: 2.5.14
8
  Text domain: my-calendar
9
  License: GPLv2 or later
10
 
@@ -83,6 +83,10 @@ Translating my plug-ins is always appreciated. Visit <a href="https://translate.
83
 
84
  == Changelog ==
85
 
 
 
 
 
86
  = 2.5.14 =
87
 
88
  * Bug fix: saving setting for main calendar URL from front page doesn't work
4
  Tags: calendar, dates, times, event, events, scheduling, schedule, event manager, event calendar, class, concert, venue, location, box office, tickets, registration
5
  Requires at least: 4.4
6
  Tested up to: 4.8
7
+ Stable tag: 2.5.15
8
  Text domain: my-calendar
9
  License: GPLv2 or later
10
 
83
 
84
  == Changelog ==
85
 
86
+ = 2.5.15 =
87
+
88
+ * Bug fix: Jumpbox rendered October as January due to unneeded character replacement
89
+
90
  = 2.5.14 =
91
 
92
  * Bug fix: saving setting for main calendar URL from front page doesn't work