Editorial Calendar - Version 0.5.2

Version Description

  • Fixed a bug that way causing an invalid concurrency error when changing post dates in non-American countries
Download this release

Release Info

Developer zgrossbart
Plugin Icon wp plugin Editorial Calendar
Version 0.5.2
Comparing to
See all releases

Code changes from version 0.5.1 to 0.5.2

Files changed (2) hide show
  1. edcal.php +2 -5
  2. readme.txt +4 -1
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.1
22
  Author: Mary Vogt and Zack Grossbart
23
  Author URI: http://www.zackgrossbart.com
24
  */
@@ -518,8 +518,6 @@ function edcal_changedate() {
518
  $post = get_post($edcal_postid, ARRAY_A);
519
  setup_postdata($post);
520
 
521
- $matches = strpos($post['post_date'], $edcal_oldDate) === 0;
522
-
523
  /*
524
  * We are doing optimistic concurrency checking on the dates. If
525
  * the user tries to move a post we want to make sure nobody else
@@ -528,8 +526,7 @@ function edcal_changedate() {
528
  * browser then we return an error to the browser along with the
529
  * updated post data.
530
  */
531
-
532
- if ($matches != 1) {
533
  global $EDCAL_CONCURRENCY_ERROR;
534
  ?> {
535
  "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.2
22
  Author: Mary Vogt and Zack Grossbart
23
  Author URI: http://www.zackgrossbart.com
24
  */
518
  $post = get_post($edcal_postid, ARRAY_A);
519
  setup_postdata($post);
520
 
 
 
521
  /*
522
  * We are doing optimistic concurrency checking on the dates. If
523
  * the user tries to move a post we want to make sure nobody else
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); ?>,
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.1
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.1 =
65
  * Fixed a bug with the post creation date that was making posts created from the calendar sometimes show up on the wrong day
66
  * We are now properly encoding the post title when changing the title or creating a new draft so we can handle non-English characters properly.
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
 
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
+
67
  = 0.5.1 =
68
  * Fixed a bug with the post creation date that was making posts created from the calendar sometimes show up on the wrong day
69
  * We are now properly encoding the post title when changing the title or creating a new draft so we can handle non-English characters properly.