Changeset 2765862
- Timestamp:
- 08/03/2022 02:26:40 PM (4 years ago)
- Location:
- shorthand-connect
- Files:
-
- 3 edited
- 5 copied
-
tags/1.3.18 (copied) (copied from shorthand-connect/trunk)
-
tags/1.3.18/README.txt (copied) (copied from shorthand-connect/trunk/README.txt) (2 diffs)
-
tags/1.3.18/includes/api-v2.php (copied) (copied from shorthand-connect/trunk/includes/api-v2.php) (1 diff)
-
tags/1.3.18/includes/shorthand_options.php (copied) (copied from shorthand-connect/trunk/includes/shorthand_options.php)
-
tags/1.3.18/shorthand_connect.php (copied) (copied from shorthand-connect/trunk/shorthand_connect.php) (4 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/includes/api-v2.php (modified) (1 diff)
-
trunk/shorthand_connect.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shorthand-connect/tags/1.3.18/README.txt
r2765832 r2765862 5 5 Requires at least: 4.0 6 6 Tested up to: 6.0.1 7 Stable tag: 1.3.1 77 Stable tag: 1.3.18 8 8 Requires PHP: 5.6 9 9 License: GPLv2 or later … … 59 59 60 60 == Changelog == 61 62 = 1.3.18 = 63 * Restored previous WP file_get_contents fetch for VIP-hosted customers 61 64 62 65 = 1.3.17 = -
shorthand-connect/tags/1.3.18/includes/api-v2.php
r2765832 r2765862 140 140 ); 141 141 } else { 142 if( function_exists("vip_safe_wp_remote_get")){142 if(defined('WPCOM_IS_VIP_ENV')){ 143 143 //WP VIP HOSTING 144 144 $zip = new ZipArchive; -
shorthand-connect/tags/1.3.18/shorthand_connect.php
r2765832 r2765862 3 3 /** 4 4 * @package Shorthand Connect 5 * @version 1.3.1 75 * @version 1.3.18 6 6 */ 7 7 /* … … 10 10 Description: Import your Shorthand stories into your Wordpress CMS as simply as possible - magic! 11 11 Author: Shorthand 12 Version: 1.3.1 712 Version: 1.3.18 13 13 Author URI: http://shorthand.com 14 14 */ … … 294 294 if(isset($err['error'])){ 295 295 update_post_meta($post_id, 'ERROR', json_encode($err)); 296 }else{ 297 delete_post_meta($post_id, 'ERROR'); 296 298 } 297 299 … … 307 309 $post_processing_queries = json_decode(base64_decode(get_option('sh_regex_list'))); 308 310 309 $body = shand_fix_content_paths($assets_path, $wp_filesystem->get_contents($article_file)); 311 $body = shand_fix_content_paths($assets_path, defined('WPCOM_IS_VIP_ENV')? file_get_contents($article_file) : $wp_filesystem->get_contents($article_file)); 312 $head = shand_fix_content_paths($assets_path, defined('WPCOM_IS_VIP_ENV')? file_get_contents($head_file) : $wp_filesystem->get_contents($head_file)); 313 310 314 if(isset($post_processing_queries->body)){ 311 315 $body = shand_post_processing($body,$post_processing_queries->body); 312 316 } 313 update_post_meta($post_id, 'story_body', wp_slash($body)); 314 $head = shand_fix_content_paths($assets_path, $wp_filesystem->get_contents($head_file)); 317 315 318 if(isset($post_processing_queries->head)){ 316 319 $head = shand_post_processing($head, $post_processing_queries->head); 317 320 } 321 322 update_post_meta($post_id, 'story_body', wp_slash($body)); 318 323 update_post_meta($post_id, 'story_head', wp_slash($head)); 319 324 320 325 // Save the abstract 321 326 if (!$noabstract) { 322 $abstract = shand_fix_content_paths($assets_path, $wp_filesystem->get_contents($article_file));327 $abstract = $body; 323 328 remove_action('save_post', 'shand_save_shorthand_story', 10, 3); 324 329 $post = array( -
shorthand-connect/trunk/README.txt
r2765832 r2765862 5 5 Requires at least: 4.0 6 6 Tested up to: 6.0.1 7 Stable tag: 1.3.1 77 Stable tag: 1.3.18 8 8 Requires PHP: 5.6 9 9 License: GPLv2 or later … … 59 59 60 60 == Changelog == 61 62 = 1.3.18 = 63 * Restored previous WP file_get_contents fetch for VIP-hosted customers 61 64 62 65 = 1.3.17 = -
shorthand-connect/trunk/includes/api-v2.php
r2765832 r2765862 140 140 ); 141 141 } else { 142 if( function_exists("vip_safe_wp_remote_get")){142 if(defined('WPCOM_IS_VIP_ENV')){ 143 143 //WP VIP HOSTING 144 144 $zip = new ZipArchive; -
shorthand-connect/trunk/shorthand_connect.php
r2765832 r2765862 3 3 /** 4 4 * @package Shorthand Connect 5 * @version 1.3.1 75 * @version 1.3.18 6 6 */ 7 7 /* … … 10 10 Description: Import your Shorthand stories into your Wordpress CMS as simply as possible - magic! 11 11 Author: Shorthand 12 Version: 1.3.1 712 Version: 1.3.18 13 13 Author URI: http://shorthand.com 14 14 */ … … 294 294 if(isset($err['error'])){ 295 295 update_post_meta($post_id, 'ERROR', json_encode($err)); 296 }else{ 297 delete_post_meta($post_id, 'ERROR'); 296 298 } 297 299 … … 307 309 $post_processing_queries = json_decode(base64_decode(get_option('sh_regex_list'))); 308 310 309 $body = shand_fix_content_paths($assets_path, $wp_filesystem->get_contents($article_file)); 311 $body = shand_fix_content_paths($assets_path, defined('WPCOM_IS_VIP_ENV')? file_get_contents($article_file) : $wp_filesystem->get_contents($article_file)); 312 $head = shand_fix_content_paths($assets_path, defined('WPCOM_IS_VIP_ENV')? file_get_contents($head_file) : $wp_filesystem->get_contents($head_file)); 313 310 314 if(isset($post_processing_queries->body)){ 311 315 $body = shand_post_processing($body,$post_processing_queries->body); 312 316 } 313 update_post_meta($post_id, 'story_body', wp_slash($body)); 314 $head = shand_fix_content_paths($assets_path, $wp_filesystem->get_contents($head_file)); 317 315 318 if(isset($post_processing_queries->head)){ 316 319 $head = shand_post_processing($head, $post_processing_queries->head); 317 320 } 321 322 update_post_meta($post_id, 'story_body', wp_slash($body)); 318 323 update_post_meta($post_id, 'story_head', wp_slash($head)); 319 324 320 325 // Save the abstract 321 326 if (!$noabstract) { 322 $abstract = shand_fix_content_paths($assets_path, $wp_filesystem->get_contents($article_file));327 $abstract = $body; 323 328 remove_action('save_post', 'shand_save_shorthand_story', 10, 3); 324 329 $post = array(
Note: See TracChangeset
for help on using the changeset viewer.