Editorial Calendar - Version 0.5.3

Version Description

  • Fixed a date formatting bug when we update posts into the WordPress database
Download this release

Release Info

Developer MaryVogt
Plugin Icon wp plugin Editorial Calendar
Version 0.5.3
Comparing to
See all releases

Code changes from version 0.5.2 to 0.5.3

Files changed (3) hide show
  1. edcal.js +2 -2
  2. edcal.php +2 -2
  3. readme.txt +4 -1
edcal.js CHANGED
@@ -1135,7 +1135,7 @@ var edcal = {
1135
  */
1136
  changeDate: function(/*string*/ newdate, /*Post*/ post) {
1137
  edcal.output('Changing the date of "' + post.title + '" to ' + newdate);
1138
- var newdateFormatted = edcal.getDayFromDayId(newdate).toString("yyyy-MM-dd");
1139
 
1140
  var postStatus = "";
1141
 
@@ -1172,7 +1172,7 @@ var edcal = {
1172
 
1173
  var url = edcal.ajax_url + "&action=edcal_changedate&postid=" + post.id +
1174
  "&postStatus=" + postStatus +
1175
- "&newdate=" + newdateFormatted + "&olddate=" + edcal.getDayFromDayId(post.date).toString("yyyy-MM-dd");
1176
 
1177
  jQuery("#post-" + post.id).addClass("loadingclass");
1178
 
1135
  */
1136
  changeDate: function(/*string*/ newdate, /*Post*/ post) {
1137
  edcal.output('Changing the date of "' + post.title + '" to ' + newdate);
1138
+ var newdateFormatted = edcal.getDayFromDayId(newdate).toString("yyyy-dd-MM");
1139
 
1140
  var postStatus = "";
1141
 
1172
 
1173
  var url = edcal.ajax_url + "&action=edcal_changedate&postid=" + post.id +
1174
  "&postStatus=" + postStatus +
1175
+ "&newdate=" + newdateFormatted + "&olddate=" + edcal.getDayFromDayId(post.date).toString("yyyy-dd-MM");
1176
 
1177
  jQuery("#post-" + post.id).addClass("loadingclass");
1178
 
edcal.php CHANGED
@@ -18,7 +18,7 @@
18
  /*
19
  Plugin Name: WordPress Editorial Calendar
20
  Description: An editorial calendar for managing the dates of your WordPress posts
21
- Version: 0.5.2
22
  Author: Mary Vogt and Zack Grossbart
23
  Author URI: http://www.zackgrossbart.com
24
  */
@@ -526,7 +526,7 @@ function edcal_changedate() {
526
  * browser then we return an error to the browser along with the
527
  * updated post data.
528
  */
529
- if (date('Y-d-m', strtotime($post['post_date'])) != date('Y-d-m', strtotime($edcal_oldDate))) {
530
  global $EDCAL_CONCURRENCY_ERROR;
531
  ?> {
532
  "error": <?php echo($EDCAL_CONCURRENCY_ERROR); ?>,
18
  /*
19
  Plugin Name: WordPress Editorial Calendar
20
  Description: An editorial calendar for managing the dates of your WordPress posts
21
+ Version: 0.5.3
22
  Author: Mary Vogt and Zack Grossbart
23
  Author URI: http://www.zackgrossbart.com
24
  */
526
  * browser then we return an error to the browser along with the
527
  * updated post data.
528
  */
529
+ if (date('Y-m-d', strtotime($post['post_date'])) != date('Y-m-d', strtotime($edcal_oldDate))) {
530
  global $EDCAL_CONCURRENCY_ERROR;
531
  ?> {
532
  "error": <?php echo($EDCAL_CONCURRENCY_ERROR); ?>,
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: MaryVogt, zgrossbart
3
  Tags: posts, post, calendar, AJAX, admin, administration
4
  Requires at least: 2.8.5
5
  Tested up to: 2.8.6
6
- Stable tag: 0.5.2
7
 
8
  Editorial calendar makes it possible to see all your posts and drag and drop them to manage your blog.
9
 
@@ -61,6 +61,9 @@ If you use the plugin <a href="http://wordpress.org/extend/plugins/live-countdow
61
 
62
  == Changelog ==
63
 
 
 
 
64
  = 0.5.2 =
65
  * Fixed a bug that way causing an invalid concurrency error when changing post dates in non-American countries
66
 
3
  Tags: posts, post, calendar, AJAX, admin, administration
4
  Requires at least: 2.8.5
5
  Tested up to: 2.8.6
6
+ Stable tag: 0.5.3
7
 
8
  Editorial calendar makes it possible to see all your posts and drag and drop them to manage your blog.
9
 
61
 
62
  == Changelog ==
63
 
64
+ = 0.5.3 =
65
+ * Fixed a date formatting bug when we update posts into the WordPress database
66
+
67
  = 0.5.2 =
68
  * Fixed a bug that way causing an invalid concurrency error when changing post dates in non-American countries
69