Editorial Calendar - Version 0.5.1

Version Description

  • Fixed a bug with the post creation date that was making posts created from the calendar sometimes show up on the wrong day
  • 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.
Download this release

Release Info

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

Code changes from version 0.5 to 0.5.1

Files changed (3) hide show
  1. edcal.js +4 -17
  2. edcal.php +1 -1
  3. readme.txt +5 -1
edcal.js CHANGED
@@ -386,7 +386,7 @@ var edcal = {
386
  saveTitle: function(/*string*/ postId) {
387
  edcal.output("Saving the new title " + jQuery("#edcal-title-edit-field").val() + " for post " + postId);
388
  var url = edcal.ajax_url + "&action=edcal_changetitle&postid=" + postId +
389
- "&title=" + jQuery.URLEncode(jQuery("#edcal-title-edit-field").val());
390
 
391
  jQuery("#post-" + postId).addClass("loadingclass");
392
 
@@ -1077,9 +1077,10 @@ var edcal = {
1077
  * We don't really let them set a time in the calendar, so we
1078
  * put a default post time of 10:00 AM.
1079
  */
1080
- var formattedDate = jQuery.URLEncode(edcal.getDayFromDayId(date).toString("yyyy-MM-dd") + " 10:00:00");
 
1081
  var url = edcal.ajax_url + "&action=edcal_newdraft&date=" + formattedDate + "&title=" +
1082
- jQuery.URLEncode(title);
1083
 
1084
  jQuery.ajax( {
1085
  url: url,
@@ -1338,17 +1339,3 @@ var edcal = {
1338
  jQuery(document).ready(function(){
1339
  edcal.init();
1340
  });
1341
-
1342
- /*
1343
- * This code is from the JQuery URL Encode plugin (http://plugins.jquery.com/project/URLEncode);
1344
- */
1345
- jQuery.extend({URLEncode:function(c){var o='';var x=0;c=c.toString();var r=/(^[a-zA-Z0-9_.]*)/;
1346
- while(x<c.length){var m=r.exec(c.substr(x));
1347
- if(m!==null && m.length>1 && m[1]!=''){o+=m[1];x+=m[1].length;
1348
- }else{if(c[x]===' '){o+='+';}else{var d=c.charCodeAt(x);var h=d.toString(16);
1349
- o+='%'+(h.length<2?'0':'')+h.toUpperCase();}x++;}}return o;},
1350
- URLDecode:function(s){var o=s;var binVal,t;var r=/(%[^%]{2})/;
1351
- while((m=r.exec(o))!==null && m.length>1 && m[1]!==''){b=parseInt(m[1].substr(1),16);
1352
- t=String.fromCharCode(b);o=o.replace(m[1],t);}return o;}
1353
- });
1354
-
386
  saveTitle: function(/*string*/ postId) {
387
  edcal.output("Saving the new title " + jQuery("#edcal-title-edit-field").val() + " for post " + postId);
388
  var url = edcal.ajax_url + "&action=edcal_changetitle&postid=" + postId +
389
+ "&title=" + encodeURIComponent(jQuery("#edcal-title-edit-field").val());
390
 
391
  jQuery("#post-" + postId).addClass("loadingclass");
392
 
1077
  * We don't really let them set a time in the calendar, so we
1078
  * put a default post time of 10:00 AM.
1079
  */
1080
+ var formattedDate = encodeURIComponent(edcal.getDayFromDayId(date).toString("yyyy-dd-MM") + " 10:00:00");
1081
+ edcal.output("Creating post on: " + edcal.getDayFromDayId(date).toString("yyyy-dd-MM"));
1082
  var url = edcal.ajax_url + "&action=edcal_newdraft&date=" + formattedDate + "&title=" +
1083
+ encodeURIComponent(title);
1084
 
1085
  jQuery.ajax( {
1086
  url: url,
1339
  jQuery(document).ready(function(){
1340
  edcal.init();
1341
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
22
  Author: Mary Vogt and Zack Grossbart
23
  Author URI: http://www.zackgrossbart.com
24
  */
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
  */
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
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,10 @@ If you use the plugin <a href="http://wordpress.org/extend/plugins/live-countdow
61
 
62
  == Changelog ==
63
 
 
 
 
 
64
  = 0.5 =
65
  * Added localization support for strings and dates in the calendar
66
  * The calendar is no longer showing posts that you have put in your trash
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
 
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.
67
+
68
  = 0.5 =
69
  * Added localization support for strings and dates in the calendar
70
  * The calendar is no longer showing posts that you have put in your trash