Plugin Directory

Changeset 3321314


Ignore:
Timestamp:
07/02/2025 02:51:43 PM (8 months ago)
Author:
docswrite
Message:

fixing bug for the featured image

Location:
docswrite/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • docswrite/trunk/DocswriteAPI.php

    r3320500 r3321314  
    364364            require_once( ABSPATH . 'wp-admin/includes/file.php' );
    365365            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';
    369368
    370369            try {
     
    375374            }
    376375       
    377             // Check if image upload was successful
    378376            if ( is_wp_error( $featured_image_id ) ) {
    379377                var_dump( 'Featured image upload failed: ' . $featured_image_id->get_error_message() );
     
    381379            }
    382380
    383             // Set the featured image
    384381            set_post_thumbnail( $post_id, $featured_image_id );
    385382
    386             // Update image title and caption
    387383            $featured_image_post = array(
    388384                'ID'           => $featured_image_id,
     
    392388            wp_update_post( $featured_image_post );
    393389
    394             // Set alt text on the IMAGE, not the post
    395390            update_post_meta( $featured_image_id, '_wp_attachment_image_alt', sanitize_text_field( $featured_image_alt_text ) );
    396391           
  • docswrite/trunk/docswrite.php

    r3320500 r3321314  
    44 * Plugin URI: https://docswrite.com/
    55 * 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.22
     6 * Version: 1.2.23
    77 * Tested up to: 6.7
    88 * Requires PHP: 5.3
     
    1111 * License: GPLv2 or later
    1212 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
    13  * Stable tag: 1.2.22
     13 * Stable tag: 1.2.23
    1414 */
    1515
  • docswrite/trunk/readme.txt

    r3320521 r3321314  
    44Requires at least: 3.5.0
    55Tested up to: 6.7
    6 Stable tag: 1.2.22
     6Stable tag: 1.2.23
    77Requires PHP: 5.3
    88License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.