Version Description
- We are now showing the full post content in the quick edit dialog even if there is a more tag so we don't overwrite the post without the full post content.
Download this release
Release Info
Developer | zgrossbart |
Plugin | Editorial Calendar |
Version | 1.3.2 |
Comparing to | |
See all releases |
Code changes from version 1.3.1 to 1.3.2
- edcal.php +2 -2
- edcal_test.js +32 -7
- readme.txt +5 -1
edcal.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
/*
|
19 |
Plugin Name: WordPress Editorial Calendar
|
20 |
Description: The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
|
21 |
-
Version: 1.3.
|
22 |
Author: Colin Vernon, Justin Evans, Mary Vogt, and Zack Grossbart
|
23 |
Author URI: http://www.zackgrossbart.com
|
24 |
Plugin URI: http://stresslimitdesign.com/editorial-calendar-plugin
|
@@ -697,7 +697,7 @@ function edcal_postJSON($post, $addComma = true, $fullPost = false) {
|
|
697 |
"id" : "<?php the_ID(); ?>"
|
698 |
|
699 |
<?php if($fullPost) : ?>
|
700 |
-
, "content" : <?php echo edcal_json_encode(
|
701 |
|
702 |
<?php endif; ?>
|
703 |
}
|
18 |
/*
|
19 |
Plugin Name: WordPress Editorial Calendar
|
20 |
Description: The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
|
21 |
+
Version: 1.3.2
|
22 |
Author: Colin Vernon, Justin Evans, Mary Vogt, and Zack Grossbart
|
23 |
Author URI: http://www.zackgrossbart.com
|
24 |
Plugin URI: http://stresslimitdesign.com/editorial-calendar-plugin
|
697 |
"id" : "<?php the_ID(); ?>"
|
698 |
|
699 |
<?php if($fullPost) : ?>
|
700 |
+
, "content" : <?php echo edcal_json_encode($post->post_content) ?>
|
701 |
|
702 |
<?php endif; ?>
|
703 |
}
|
edcal_test.js
CHANGED
@@ -22,7 +22,8 @@ var edcal_test = {
|
|
22 |
|
23 |
post: {},
|
24 |
|
25 |
-
testContent: 'This is the content of the unit test post.',
|
|
|
26 |
|
27 |
|
28 |
runTests: function() {
|
@@ -155,7 +156,7 @@ var edcal_test = {
|
|
155 |
expect(3);
|
156 |
|
157 |
edcal_test.post.title = 'Unit Test Post';
|
158 |
-
edcal_test.post.content =
|
159 |
edcal_test.post.status = 'draft';
|
160 |
edcal_test.post.time = '10:00 AM';
|
161 |
edcal_test.post.date = Date.today().add(7).days().toString(edcal.internalDateFormat);
|
@@ -174,7 +175,7 @@ var edcal_test = {
|
|
174 |
equals(jQuery('#post-' + res.post.id).length, 1, 'The post should be added in only one place in the calendar.');
|
175 |
|
176 |
edcal_test.post = res.post;
|
177 |
-
|
178 |
start();
|
179 |
|
180 |
edcal_test.testGetPost();
|
@@ -189,11 +190,12 @@ var edcal_test = {
|
|
189 |
*/
|
190 |
|
191 |
asyncTest('Get post information', function() {
|
192 |
-
expect(
|
193 |
|
194 |
edcal.getPost(edcal_test.post.id, function(post) {
|
195 |
equals(post.date, edcal_test.post.date, 'The resulting post should have the same date as the request');
|
196 |
equals(post.title, edcal_test.post.title, 'The resulting post should have the same title as the request');
|
|
|
197 |
|
198 |
edcal_test.post = post;
|
199 |
|
@@ -271,7 +273,7 @@ var edcal_test = {
|
|
271 |
expect(2);
|
272 |
|
273 |
edcal_test.post.title = 'Unit Test Post – Changed';
|
274 |
-
edcal_test.post.content =
|
275 |
|
276 |
edcal.savePost(edcal_test.post, false, true, function(res)
|
277 |
{
|
@@ -282,19 +284,42 @@ var edcal_test = {
|
|
282 |
}
|
283 |
|
284 |
equals(res.post.title, edcal_test.post.title, 'The resulting post should have the same title as the request');
|
285 |
-
|
286 |
equals(jQuery('#post-' + res.post.id).length, 1, 'The post should be added in only one place in the calendar.');
|
287 |
|
288 |
edcal_test.post = res.post;
|
289 |
|
290 |
start();
|
291 |
|
292 |
-
edcal_test.
|
293 |
|
294 |
});
|
295 |
});
|
296 |
|
297 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
|
299 |
testDateConflict: function() {
|
300 |
asyncTest('Try to change a post date and fail because of a concurrency conflict', function() {
|
22 |
|
23 |
post: {},
|
24 |
|
25 |
+
testContent: 'This is the content of the <b>unit test – post</b>. <!--more--> This is content after the more tag to make sure we a reading it.',
|
26 |
+
testContent2: 'This is the content of the <b>unit test – post</b>. <!--more--> This is content after the more tag to make sure we a reading it. - CHANGED',
|
27 |
|
28 |
|
29 |
runTests: function() {
|
156 |
expect(3);
|
157 |
|
158 |
edcal_test.post.title = 'Unit Test Post';
|
159 |
+
edcal_test.post.content = edcal_test.testContent;
|
160 |
edcal_test.post.status = 'draft';
|
161 |
edcal_test.post.time = '10:00 AM';
|
162 |
edcal_test.post.date = Date.today().add(7).days().toString(edcal.internalDateFormat);
|
175 |
equals(jQuery('#post-' + res.post.id).length, 1, 'The post should be added in only one place in the calendar.');
|
176 |
|
177 |
edcal_test.post = res.post;
|
178 |
+
|
179 |
start();
|
180 |
|
181 |
edcal_test.testGetPost();
|
190 |
*/
|
191 |
|
192 |
asyncTest('Get post information', function() {
|
193 |
+
expect(3);
|
194 |
|
195 |
edcal.getPost(edcal_test.post.id, function(post) {
|
196 |
equals(post.date, edcal_test.post.date, 'The resulting post should have the same date as the request');
|
197 |
equals(post.title, edcal_test.post.title, 'The resulting post should have the same title as the request');
|
198 |
+
equals(post.content, edcal_test.testContent, 'The resulting post content should be the same as the test post content');
|
199 |
|
200 |
edcal_test.post = post;
|
201 |
|
273 |
expect(2);
|
274 |
|
275 |
edcal_test.post.title = 'Unit Test Post – Changed';
|
276 |
+
edcal_test.post.content = edcal_test.testContent2;
|
277 |
|
278 |
edcal.savePost(edcal_test.post, false, true, function(res)
|
279 |
{
|
284 |
}
|
285 |
|
286 |
equals(res.post.title, edcal_test.post.title, 'The resulting post should have the same title as the request');
|
287 |
+
|
288 |
equals(jQuery('#post-' + res.post.id).length, 1, 'The post should be added in only one place in the calendar.');
|
289 |
|
290 |
edcal_test.post = res.post;
|
291 |
|
292 |
start();
|
293 |
|
294 |
+
edcal_test.testGetAfterEdit();
|
295 |
|
296 |
});
|
297 |
});
|
298 |
|
299 |
},
|
300 |
+
|
301 |
+
testGetAfterEdit: function() {
|
302 |
+
/*
|
303 |
+
* Now we'll test to make sure our new post data still matches what we think it should
|
304 |
+
*/
|
305 |
+
|
306 |
+
asyncTest('Get post information after editing', function() {
|
307 |
+
expect(3);
|
308 |
+
|
309 |
+
edcal.getPost(edcal_test.post.id, function(post) {
|
310 |
+
equals(post.date, edcal_test.post.date, 'The resulting post should have the same date as the request');
|
311 |
+
equals(post.title, edcal_test.post.title, 'The resulting post should have the same title as the request');
|
312 |
+
equals(post.content, edcal_test.testContent2, 'The resulting post content should be the same as the test post content');
|
313 |
+
|
314 |
+
edcal_test.post = post;
|
315 |
+
|
316 |
+
start();
|
317 |
+
|
318 |
+
edcal_test.testDateConflict();
|
319 |
+
});
|
320 |
+
});
|
321 |
+
|
322 |
+
},
|
323 |
|
324 |
testDateConflict: function() {
|
325 |
asyncTest('Try to change a post date and fail because of a concurrency conflict', function() {
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: cvernon, justinstresslimit, MaryVogt, zgrossbart
|
|
3 |
Tags: posts, post, calendar, AJAX, admin, administration
|
4 |
Requires at least: 2.8.5
|
5 |
Tested up to: 3.0.4
|
6 |
-
Stable tag: 1.3.
|
7 |
|
8 |
The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
|
9 |
|
@@ -152,6 +152,10 @@ Moving published posts can cause problems with some RSS feeds and is generally n
|
|
152 |
|
153 |
== Changelog ==
|
154 |
|
|
|
|
|
|
|
|
|
155 |
= 1.3.1 =
|
156 |
* Added an extra check so we aren't calling functions for supporting custom post types when they aren't available. This problem only happens on WordPress 2.9.X.
|
157 |
|
3 |
Tags: posts, post, calendar, AJAX, admin, administration
|
4 |
Requires at least: 2.8.5
|
5 |
Tested up to: 3.0.4
|
6 |
+
Stable tag: 1.3.2
|
7 |
|
8 |
The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
|
9 |
|
152 |
|
153 |
== Changelog ==
|
154 |
|
155 |
+
= 1.3.2 =
|
156 |
+
* We are now showing the full post content in the quick edit dialog even if there is a more tag
|
157 |
+
so we don't overwrite the post without the full post content.
|
158 |
+
|
159 |
= 1.3.1 =
|
160 |
* Added an extra check so we aren't calling functions for supporting custom post types when they aren't available. This problem only happens on WordPress 2.9.X.
|
161 |
|