... | ... |
@@ -1,13 +1,13 @@ |
1 | 1 |
=== Rucy === |
2 | 2 |
Contributors: gips-nita |
3 | 3 |
Tags: post, update content, update post, update page, schedule update, reserve update, reservation update, rucy, Rucy |
4 |
-Requires at least: 3.5+ |
|
5 |
-Tested up to: 3.9 |
|
6 |
-Stable tag: 0.2.0 |
|
4 |
+Requires at least: 3.5 |
|
5 |
+Tested up to: 4.1.1 |
|
6 |
+Stable tag: 0.3.0 |
|
7 | 7 |
License: GPLv2 or later |
8 | 8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |
9 | 9 |
|
10 |
-Add reservation update published content. |
|
10 |
+Enable you can reservation post update it is published. |
|
11 | 11 |
|
12 | 12 |
== Description == |
13 | 13 |
|
... | ... |
@@ -37,6 +37,11 @@ You can install this plugin directly from your WordPress dashboard: |
37 | 37 |
|
38 | 38 |
== Changelog == |
39 | 39 |
|
40 |
+= 0.3.0 = |
|
41 |
+* 2015-04-09 |
|
42 |
+* add "feature image" and "post date" to reservation update. |
|
43 |
+* when reservation post update, fixed iframe tag and more html tag it will be removed. |
|
44 |
+ |
|
40 | 45 |
= 0.2.0 = |
41 | 46 |
* 2014-06-13 |
42 | 47 |
* fixed Bugs. |
... | ... |
@@ -3,7 +3,7 @@ |
3 | 3 |
* Plugin Name: Rucy |
4 | 4 |
* Plugin URI: https://github.com/gips/rucy |
5 | 5 |
* Description: Reservation Update (Published) Content. |
6 |
- * Version: 0.2.0 |
|
6 |
+ * Version: 0.3.0 |
|
7 | 7 |
* Author: Nita |
8 | 8 |
* License: GPLv2 or later |
9 | 9 |
* Text Domain: rucy |
... | ... |
@@ -22,9 +22,9 @@ function load_rc_jscss() |
22 | 22 |
global $hook_suffix; |
23 | 23 |
if(in_array($hook_suffix, array('post.php','post-new.php',))) |
24 | 24 |
{ |
25 |
- wp_register_style('rucy.css', RC_PLUGIN_URL . '/css/rucy.css',array(),'0.0.1'); |
|
25 |
+ wp_register_style('rucy.css', RC_PLUGIN_URL . '/css/rucy.css',array(),'0.1.0'); |
|
26 | 26 |
wp_enqueue_style('rucy.css'); |
27 |
- wp_register_script('rucy.js', RC_PLUGIN_URL . '/js/rucy.js', array('jquery'), '0.0.1'); |
|
27 |
+ wp_register_script('rucy.js', RC_PLUGIN_URL . '/js/rucy.js', array('jquery'), '0.1.0'); |
|
28 | 28 |
wp_enqueue_script('rucy.js'); |
29 | 29 |
} |
30 | 30 |
} |
... | ... |
@@ -229,7 +229,6 @@ function add_rucy_metabox_inside() |
229 | 229 |
<input type="checkbox" name="<?php echo $reserv_accept_feature_name; ?>" value="1" <?php echo ($reserv_accept_feature == "1") ? "checked" : ""; ?>> <?php _e('Accept reserve update feature image.', RC_TXT_DOMAIN); ?> |
230 | 230 |
</label> |
231 | 231 |
<div class="rc_feature_image_uploader"> |
232 |
-<!--<p><a href="media-upload.php?type=image&TB_iframe=1&width=753&height=522&post_id=<?php echo $post->ID ?>" class="thickbox<?php echo ($reserv_feature_image != '') ? ' has_image' : ''; ?>" id="rc_feature_image_upload" title="<?php _e('Set featured image Reservation', RC_TXT_DOMAIN) ?>"><?php echo ($reserv_feature_image != '') ? $reserv_feature_image : __('Set featured image for Reservation', RC_TXT_DOMAIN); ?></a></p>--> |
|
233 | 232 |
<p><button id="rc_feature_image_upload" class="button rc-feature-uploader-button <?php echo ($reserv_feature_image != '') ? ' has_image' : ''; ?>"><?php _e('Set featured image for Reservation', RC_TXT_DOMAIN); ?></button></p> |
234 | 233 |
|
235 | 234 |
<div class="rc-feature-image-uploader__ctrl"> |
... | ... |
@@ -341,10 +340,12 @@ function update_rc_reserved_content($post_id) |
341 | 341 |
update_rc_post_thumbnail($post_id, $rc_metas['feature_img']); |
342 | 342 |
} |
343 | 343 |
remove_filter('content_save_pre', 'wp_filter_post_kses'); |
344 |
+ remove_filter('content_filtered_save_pre', 'wp_filter_post_kses'); |
|
344 | 345 |
add_filter('content_save_pre', 'rc_content_allow_iframe'); |
345 | 346 |
$upp = wp_update_post($updates,true); |
346 | 347 |
remove_filter('content_save_pre', 'rc_content_allow_iframe'); |
347 | 348 |
add_filter('content_save_pre', 'wp_filter_post_kses'); |
349 |
+ add_filter('content_filtered_save_pre', 'wp_filter_post_kses'); |
|
348 | 350 |
} |
349 | 351 |
$dels = get_rc_metas(); |
350 | 352 |
foreach ($dels as $key => $del) |