Changeset 3321314
- Timestamp:
- 07/02/2025 02:51:43 PM (8 months ago)
- Location:
- docswrite/trunk
- Files:
-
- 3 edited
-
DocswriteAPI.php (modified) (4 diffs)
-
docswrite.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
docswrite/trunk/DocswriteAPI.php
r3320500 r3321314 364 364 require_once( ABSPATH . 'wp-admin/includes/file.php' ); 365 365 require_once( ABSPATH . 'wp-admin/includes/image.php' ); 366 367 // Remove everything after the first '?' in the URL, if present 368 $cleaned_url = $url . '?ext=.png'; 366 367 $cleaned_url = $url . '#?ext=.png'; 369 368 370 369 try { … … 375 374 } 376 375 377 // Check if image upload was successful378 376 if ( is_wp_error( $featured_image_id ) ) { 379 377 var_dump( 'Featured image upload failed: ' . $featured_image_id->get_error_message() ); … … 381 379 } 382 380 383 // Set the featured image384 381 set_post_thumbnail( $post_id, $featured_image_id ); 385 382 386 // Update image title and caption387 383 $featured_image_post = array( 388 384 'ID' => $featured_image_id, … … 392 388 wp_update_post( $featured_image_post ); 393 389 394 // Set alt text on the IMAGE, not the post395 390 update_post_meta( $featured_image_id, '_wp_attachment_image_alt', sanitize_text_field( $featured_image_alt_text ) ); 396 391 -
docswrite/trunk/docswrite.php
r3320500 r3321314 4 4 * Plugin URI: https://docswrite.com/ 5 5 * Description: Official Docswrite Integration. Google Docs to WordPress in One-Click. Save 100s of hours every month. No more copy-pasting. No more formatting issues. 6 * Version: 1.2.2 26 * Version: 1.2.23 7 7 * Tested up to: 6.7 8 8 * Requires PHP: 5.3 … … 11 11 * License: GPLv2 or later 12 12 * License URI: https://www.gnu.org/licenses/gpl-2.0.html 13 * Stable tag: 1.2.2 213 * Stable tag: 1.2.23 14 14 */ 15 15 -
docswrite/trunk/readme.txt
r3320521 r3321314 4 4 Requires at least: 3.5.0 5 5 Tested up to: 6.7 6 Stable tag: 1.2.2 26 Stable tag: 1.2.23 7 7 Requires PHP: 5.3 8 8 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.