Changeset 2887121
- Timestamp:
- 03/26/2023 02:33:20 PM (3 years ago)
- Location:
- wordable
- Files:
-
- 1 added
- 5 edited
- 20 copied
-
tags/8.2.4 (added)
-
tags/8.2.4/includes (copied) (copied from wordable/trunk/includes)
-
tags/8.2.4/includes/action_params.php (copied) (copied from wordable/trunk/includes/action_params.php)
-
tags/8.2.4/includes/actions.php (copied) (copied from wordable/trunk/includes/actions.php) (3 diffs)
-
tags/8.2.4/includes/activator.php (copied) (copied from wordable/trunk/includes/activator.php)
-
tags/8.2.4/includes/connector.php (copied) (copied from wordable/trunk/includes/connector.php)
-
tags/8.2.4/includes/wordable_exception.php (copied) (copied from wordable/trunk/includes/wordable_exception.php)
-
tags/8.2.4/includes/wordable_plugin.php (copied) (copied from wordable/trunk/includes/wordable_plugin.php)
-
tags/8.2.4/readme.txt (copied) (copied from wordable/trunk/readme.txt) (2 diffs)
-
tags/8.2.4/settings (copied) (copied from wordable/trunk/settings)
-
tags/8.2.4/settings/css/wordable.css (copied) (copied from wordable/trunk/settings/css/wordable.css)
-
tags/8.2.4/settings/images/menu_logo.svg (copied) (copied from wordable/trunk/settings/images/menu_logo.svg)
-
tags/8.2.4/settings/index.php (copied) (copied from wordable/trunk/settings/index.php)
-
tags/8.2.4/settings/js/settings.js (modified) (1 diff)
-
tags/8.2.4/settings/views/_category_tree_node.php (copied) (copied from wordable/trunk/settings/views/_category_tree_node.php)
-
tags/8.2.4/settings/views/authors.php (copied) (copied from wordable/trunk/settings/views/authors.php)
-
tags/8.2.4/settings/views/categories.php (copied) (copied from wordable/trunk/settings/views/categories.php)
-
tags/8.2.4/settings/views/cta.php (copied) (copied from wordable/trunk/settings/views/cta.php)
-
tags/8.2.4/settings/views/index.php (copied) (copied from wordable/trunk/settings/views/index.php)
-
tags/8.2.4/settings/views/onboarding.php (copied) (copied from wordable/trunk/settings/views/onboarding.php)
-
tags/8.2.4/settings/views/system_report.php (copied) (copied from wordable/trunk/settings/views/system_report.php)
-
tags/8.2.4/wordable.php (copied) (copied from wordable/trunk/wordable.php) (1 diff)
-
trunk/includes/actions.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/settings/js/settings.js (modified) (1 diff)
-
trunk/wordable.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wordable/tags/8.2.4/includes/actions.php
r2845107 r2887121 109 109 } 110 110 111 function upload_image_action( ) {111 function upload_image_action($params) { 112 112 if(!file_is_valid_image($_FILES['file']['tmp_name'])) { 113 113 throw new WordableException('warnings.connections.wordpress.upload_image.invalid_image'); … … 116 116 $attachment_id = $this->throw_if_wp_error(media_handle_upload('file', 0)); 117 117 118 returnarray(118 $result = array( 119 119 'plugin_version' => WORDABLE_VERSION, 120 120 'wordpress_version' => get_bloginfo('version'), … … 122 122 'url' => esc_url(wp_get_attachment_url($attachment_id)) 123 123 ); 124 125 error_log(" --- params ---"); 126 error_log(var_export($params, true)); 127 128 if(array_key_exists('image_attributes', $params)) { 129 $image_attributes = $params['image_attributes']; 130 error_log(" --- image_attributes ---"); 131 error_log(var_export($image_attributes, true)); 132 133 if(array_key_exists('alt', $image_attributes)) { 134 update_post_meta($attachment_id, '_wp_attachment_image_alt', $image_attributes['alt']); 135 } 136 137 if(array_key_exists('caption', $image_attributes)) { 138 wp_update_post( 139 array('ID' => $attachment_id, 140 'post_excerpt' => $image_attributes['caption'])); 141 } 142 } 143 144 return $result; 124 145 } 125 146 -
wordable/tags/8.2.4/readme.txt
r2860099 r2887121 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 Stable Tag: 8.2. 310 Stable Tag: 8.2.4 11 11 12 12 This plugin allows you to instantly export Google Docs to WordPress posts or pages. … … 136 136 == Changelog == 137 137 138 = 8.2.4 = 139 * Saving Attachment Meta to the Database 140 138 141 = 8.1.3 = 139 142 * UI Fixes -
wordable/tags/8.2.4/settings/js/settings.js
r2682639 r2887121 4 4 $('#wordable-plugin-settings-system-report-link').on('click', function() { 5 5 navigator.clipboard.writeText($('#wordable-plugin-settings-system-report-text').text()); 6 6 7 $('#wordable-plugin-settings-system-report-link').text('Copied to clipboard!'); 7 8 }) -
wordable/tags/8.2.4/wordable.php
r2860099 r2887121 4 4 * Plugin URI: http://wordable.io 5 5 * Description: This plugin allows you to instantly export Google Docs to WordPress posts or pages. 6 * Version: 8.2. 36 * Version: 8.2.4 7 7 * Author: Wordable 8 8 * Author URI: https://wordable.io 9 9 * Tested up to: 5.9.2 10 10 * Requires at least: 5.0 11 * Stable tag: 8.2. 311 * Stable tag: 8.2.4 12 12 * 13 13 * Wordpress 5.0+ 14 14 */ 15 15 16 define('WORDABLE_VERSION', '8.2. 3');16 define('WORDABLE_VERSION', '8.2.4'); 17 17 18 18 include 'includes/wordable_exception.php'; -
wordable/trunk/includes/actions.php
r2845107 r2887121 109 109 } 110 110 111 function upload_image_action( ) {111 function upload_image_action($params) { 112 112 if(!file_is_valid_image($_FILES['file']['tmp_name'])) { 113 113 throw new WordableException('warnings.connections.wordpress.upload_image.invalid_image'); … … 116 116 $attachment_id = $this->throw_if_wp_error(media_handle_upload('file', 0)); 117 117 118 returnarray(118 $result = array( 119 119 'plugin_version' => WORDABLE_VERSION, 120 120 'wordpress_version' => get_bloginfo('version'), … … 122 122 'url' => esc_url(wp_get_attachment_url($attachment_id)) 123 123 ); 124 125 error_log(" --- params ---"); 126 error_log(var_export($params, true)); 127 128 if(array_key_exists('image_attributes', $params)) { 129 $image_attributes = $params['image_attributes']; 130 error_log(" --- image_attributes ---"); 131 error_log(var_export($image_attributes, true)); 132 133 if(array_key_exists('alt', $image_attributes)) { 134 update_post_meta($attachment_id, '_wp_attachment_image_alt', $image_attributes['alt']); 135 } 136 137 if(array_key_exists('caption', $image_attributes)) { 138 wp_update_post( 139 array('ID' => $attachment_id, 140 'post_excerpt' => $image_attributes['caption'])); 141 } 142 } 143 144 return $result; 124 145 } 125 146 -
wordable/trunk/readme.txt
r2860099 r2887121 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 Stable Tag: 8.2. 310 Stable Tag: 8.2.4 11 11 12 12 This plugin allows you to instantly export Google Docs to WordPress posts or pages. … … 136 136 == Changelog == 137 137 138 = 8.2.4 = 139 * Saving Attachment Meta to the Database 140 138 141 = 8.1.3 = 139 142 * UI Fixes -
wordable/trunk/settings/js/settings.js
r2682639 r2887121 4 4 $('#wordable-plugin-settings-system-report-link').on('click', function() { 5 5 navigator.clipboard.writeText($('#wordable-plugin-settings-system-report-text').text()); 6 6 7 $('#wordable-plugin-settings-system-report-link').text('Copied to clipboard!'); 7 8 }) -
wordable/trunk/wordable.php
r2860099 r2887121 4 4 * Plugin URI: http://wordable.io 5 5 * Description: This plugin allows you to instantly export Google Docs to WordPress posts or pages. 6 * Version: 8.2. 36 * Version: 8.2.4 7 7 * Author: Wordable 8 8 * Author URI: https://wordable.io 9 9 * Tested up to: 5.9.2 10 10 * Requires at least: 5.0 11 * Stable tag: 8.2. 311 * Stable tag: 8.2.4 12 12 * 13 13 * Wordpress 5.0+ 14 14 */ 15 15 16 define('WORDABLE_VERSION', '8.2. 3');16 define('WORDABLE_VERSION', '8.2.4'); 17 17 18 18 include 'includes/wordable_exception.php';
Note: See TracChangeset
for help on using the changeset viewer.