Changeset 1528830
- Timestamp:
- 11/05/2016 03:36:17 PM (9 years ago)
- Location:
- wp-allaround
- Files:
-
- 6 edited
- 2 copied
-
tags/0.6.1 (copied) (copied from wp-allaround/trunk)
-
tags/0.6.1/README.txt (modified) (1 diff)
-
tags/0.6.1/wp-allaround.php (modified) (4 diffs)
-
tags/0.8.2 (copied) (copied from wp-allaround/trunk)
-
tags/0.8.2/README.txt (modified) (2 diffs)
-
tags/0.8.2/wp-allaround.php (modified) (4 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/wp-allaround.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-allaround/tags/0.6.1/README.txt
r1462090 r1528830 5 5 Requires at least: 4.0.0 6 6 Tested up to: 4.6.0 7 Stable tag: 0.6 7 Stable tag: 0.6.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
wp-allaround/tags/0.6.1/wp-allaround.php
r1464978 r1528830 4 4 Plugin URI: http://www.allaroundsiena.com/plugin 5 5 Description: This plugin let you to connect a Telegram Bot with your blog 6 Version: 0.6 6 Version: 0.6.1 7 7 Author: Michele Pinassi 8 8 Author URI: http://www.zerozone.it … … 77 77 ?> 78 78 <p> 79 <input type="checkbox" name="allaround_post_ do_publish" id="allaround_post_do_publish" value="1" checked/>80 <label class="description" for="allaround_post_ do_publish"><?php _e('Publish this post on AllAround', 'wp-allaround' ); ?></label>79 <input type="checkbox" name="allaround_post_publish" id="allaround_post_publish" value="1" checked /> 80 <label class="description" for="allaround_post_publish"><?php _e('Publish this post on AllAround', 'wp-allaround' ); ?></label> 81 81 </p> 82 82 <?php … … 133 133 $option_api_key = get_option( 'allaround_api_key' ); 134 134 135 // if(($option_api_key) && ('publish' === $new_status && 'publish' !== $old_status)) {136 137 135 if($option_api_key) { 138 136 /* Get the post properties */ … … 187 185 } 188 186 189 add_action('publish_post','allaround_action_publish',10,2); 190 191 function allaround_action_publish($ID, $post) { 187 // add_action('transition_post_status', 'allaround_post_publish', 10, 3); 188 189 add_action('save_post','allaround_post_publish', 10, 3); 190 191 function allaround_post_publish($ID, $post, $update) { 192 192 193 /* Check if this post was already published to avoid duplicates */ 193 194 $check_is_publish = get_post_meta($post->ID,'allaround_post_publish', true); -
wp-allaround/tags/0.8.2/README.txt
r1519139 r1528830 5 5 Requires at least: 4.0.0 6 6 Tested up to: 4.6.1 7 Stable tag: 0.8. 17 Stable tag: 0.8.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 35 35 36 36 == Changelog == 37 38 = 0.8.2 = 39 * Fixed a nasty bug that cause an error while installing the plugin on older PHP version 37 40 38 41 = 0.8.1 = -
wp-allaround/tags/0.8.2/wp-allaround.php
r1519139 r1528830 4 4 Plugin URI: http://www.allaroundsiena.com/plugin 5 5 Description: This plugin let you to connect a Telegram Bot with your blog 6 Version: 0.8. 16 Version: 0.8.2 7 7 Author: Michele Pinassi 8 8 Author URI: http://www.zerozone.it … … 95 95 printf( __('Error %s while publishing on %s', 'wp-allaround'), $post_message, $t_date); 96 96 ?> 97 <p>98 <input type="checkbox" name="allaround_post_do_publish" id="allaround_post_do_publish" value="1"/>99 <label class="description" for="allaround_post_do_publish"><?php _e('Try again', 'wp-allaround' ); ?></label>100 </p>97 <p> 98 <input type="checkbox" name="allaround_post_publish" id="allaround_post_publish" value="1" checked /> 99 <label class="description" for="allaround_post_publish"><?php _e('Publish this post on AllAround', 'wp-allaround' ); ?></label> 100 </p> 101 101 <?php 102 102 … … 185 185 /* Post have an image ? */ 186 186 if(has_post_thumbnail($post->ID)) { 187 $post_image_url = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'medium')[0]; 187 $post_image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'medium'); 188 $post_image_url = $post_image[0]; 188 189 } else { 189 190 $post_image_url = ''; … … 232 233 } 233 234 234 / * ============================================================ */235 /* */ 236 /* PUBLISH HOOK */ 237 /* */ 238 /* =============================================================*/ 239 240 function allaround_action_publish($new_status, $old_status, $post) { 241 $ do_publish = false;235 // add_action('transition_post_status', 'allaround_post_publish', 10, 3); 236 237 add_action('save_post','allaround_post_publish', 10, 3); 238 239 function allaround_post_publish($ID, $post, $update) { 240 241 /* Check if this post was already published to avoid duplicates */ 242 $check_is_publish = get_post_meta($post->ID,'allaround_post_publish', true); 242 243 243 244 error_log("FIRED: allaround_action_publish($new_status,$old_status,$post->ID)"); -
wp-allaround/trunk/README.txt
r1519139 r1528830 5 5 Requires at least: 4.0.0 6 6 Tested up to: 4.6.1 7 Stable tag: 0.8. 17 Stable tag: 0.8.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 35 35 36 36 == Changelog == 37 38 = 0.8.2 = 39 * Fixed a nasty bug that cause an error while installing the plugin on older PHP version 37 40 38 41 = 0.8.1 = -
wp-allaround/trunk/wp-allaround.php
r1519139 r1528830 4 4 Plugin URI: http://www.allaroundsiena.com/plugin 5 5 Description: This plugin let you to connect a Telegram Bot with your blog 6 Version: 0.8. 16 Version: 0.8.2 7 7 Author: Michele Pinassi 8 8 Author URI: http://www.zerozone.it … … 95 95 printf( __('Error %s while publishing on %s', 'wp-allaround'), $post_message, $t_date); 96 96 ?> 97 <p>98 <input type="checkbox" name="allaround_post_do_publish" id="allaround_post_do_publish" value="1"/>99 <label class="description" for="allaround_post_do_publish"><?php _e('Try again', 'wp-allaround' ); ?></label>100 </p>97 <p> 98 <input type="checkbox" name="allaround_post_publish" id="allaround_post_publish" value="1" checked /> 99 <label class="description" for="allaround_post_publish"><?php _e('Publish this post on AllAround', 'wp-allaround' ); ?></label> 100 </p> 101 101 <?php 102 102 … … 185 185 /* Post have an image ? */ 186 186 if(has_post_thumbnail($post->ID)) { 187 $post_image_url = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'medium')[0]; 187 $post_image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'medium'); 188 $post_image_url = $post_image[0]; 188 189 } else { 189 190 $post_image_url = ''; … … 232 233 } 233 234 234 / * ============================================================ */235 /* */ 236 /* PUBLISH HOOK */ 237 /* */ 238 /* =============================================================*/ 239 240 function allaround_action_publish($new_status, $old_status, $post) { 241 $ do_publish = false;235 // add_action('transition_post_status', 'allaround_post_publish', 10, 3); 236 237 add_action('save_post','allaround_post_publish', 10, 3); 238 239 function allaround_post_publish($ID, $post, $update) { 240 241 /* Check if this post was already published to avoid duplicates */ 242 $check_is_publish = get_post_meta($post->ID,'allaround_post_publish', true); 242 243 243 244 error_log("FIRED: allaround_action_publish($new_status,$old_status,$post->ID)");
Note: See TracChangeset
for help on using the changeset viewer.