Plugin Directory

Changeset 3383697


Ignore:
Timestamp:
10/24/2025 02:18:36 AM (5 months ago)
Author:
quickcreator
Message:

update to 0.1.18

Location:
quickcreator
Files:
5 edited
22 copied

Legend:

Unmodified
Added
Removed
  • quickcreator/tags/0.1.18/includes/admin/class-quickcreator-admin.php

    r3250322 r3383697  
    140140    private function get_debug_data()
    141141    {
    142         // read content from file /dupasrala.txt
    143         $dupasrala = file_get_contents(Quickcreator()->get_basedir() . '/dupasrala.txt');
    144142        $error_log = file_get_contents(Quickcreator()->get_basedir() . '/error.log');
    145143        $wp_token = get_transient('quickcreator_connection_token');
     
    150148        $content .= 'QUICKCREATOR API KEY: ' . get_option('quickcreator_api_access_key', false) . PHP_EOL . PHP_EOL;
    151149        $content .= 'QUICKCREATOR CONNECTION TOKEN: ' . $wp_token . PHP_EOL . PHP_EOL;
    152         $content .= 'QUICKCREATOR DUPASRALA: ' . $dupasrala . PHP_EOL . PHP_EOL;
    153150        $content .= 'QUICKCREATOR ORGANIZATION: ' . print_r(get_option('quickcreator_connection_details', null), true) . PHP_EOL . PHP_EOL;
    154151        $content .= 'QUICKCREATOR VERSION NOW: ' . QUICKCREATOR_BLOG_VERSION . PHP_EOL . PHP_EOL;
  • quickcreator/tags/0.1.18/includes/quickcreator/class-quickcreator.php

    r3382260 r3383697  
    605605        }
    606606
    607         file_put_contents(Quickcreator()->get_basedir() . '/dupasrala.txt', $received_token . ' - ' . $saved_token);
    608607        return false;
    609608    }
  • quickcreator/tags/0.1.18/includes/quickcreator/content-parsers/class-content-parser.php

    r3382260 r3383697  
    138138        $tmp_directory = download_url($image_url);
    139139        if (is_wp_error($tmp_directory)) {
    140             throw new \Exception('Image download failed: ' . $tmp_directory->get_error_message());
     140            throw new \Exception(
     141                sprintf(
     142                    'Image download failed [%s]: %s | Data: %s',
     143                    $tmp_directory->get_error_code(),
     144                    $tmp_directory->get_error_message(),
     145                    json_encode($tmp_directory->get_error_data(), JSON_UNESCAPED_UNICODE)
     146                )
     147            );
    141148        }
    142149        $content_type  = "";
     
    180187
    181188        if (is_wp_error($attachment_id)) {
    182             throw new \Exception('Image upload failed: ' . $attachment_id->get_error_message());
     189            throw new \Exception(
     190                sprintf(
     191                    'Image upload failed [%s]: %s | Data: %s',
     192                    $attachment_id->get_error_code(),
     193                    $attachment_id->get_error_message(),
     194                    json_encode($attachment_id->get_error_data(), JSON_UNESCAPED_UNICODE)
     195                )
     196            );
    183197        }
    184198
  • quickcreator/tags/0.1.18/quickcreator.php

    r3382260 r3383697  
    44 * Plugin URI: https://wordpress.org/plugins/quickcreator/
    55 * Description: Create post with Quickcreator in WordPress
    6  * Version: 0.1.17
     6 * Version: 0.1.18
    77 * Author: Quickcreator
    88 * Author URI: https://quickcreator.io
     
    2222
    2323if ( ! defined( 'QUICKCREATOR_BLOG_VERSION' ) ) {
    24     define( 'QUICKCREATOR_BLOG_VERSION', '0.1.17' );
     24    define( 'QUICKCREATOR_BLOG_VERSION', '0.1.18' );
    2525}
    2626
  • quickcreator/tags/0.1.18/readme.txt

    r3382260 r3383697  
    55Requires PHP: 7.4
    66Tested up to: 6.8.1
    7 Stable tag: 0.1.17
     7Stable tag: 0.1.18
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • quickcreator/trunk/includes/admin/class-quickcreator-admin.php

    r3250322 r3383697  
    140140    private function get_debug_data()
    141141    {
    142         // read content from file /dupasrala.txt
    143         $dupasrala = file_get_contents(Quickcreator()->get_basedir() . '/dupasrala.txt');
    144142        $error_log = file_get_contents(Quickcreator()->get_basedir() . '/error.log');
    145143        $wp_token = get_transient('quickcreator_connection_token');
     
    150148        $content .= 'QUICKCREATOR API KEY: ' . get_option('quickcreator_api_access_key', false) . PHP_EOL . PHP_EOL;
    151149        $content .= 'QUICKCREATOR CONNECTION TOKEN: ' . $wp_token . PHP_EOL . PHP_EOL;
    152         $content .= 'QUICKCREATOR DUPASRALA: ' . $dupasrala . PHP_EOL . PHP_EOL;
    153150        $content .= 'QUICKCREATOR ORGANIZATION: ' . print_r(get_option('quickcreator_connection_details', null), true) . PHP_EOL . PHP_EOL;
    154151        $content .= 'QUICKCREATOR VERSION NOW: ' . QUICKCREATOR_BLOG_VERSION . PHP_EOL . PHP_EOL;
  • quickcreator/trunk/includes/quickcreator/class-quickcreator.php

    r3382260 r3383697  
    605605        }
    606606
    607         file_put_contents(Quickcreator()->get_basedir() . '/dupasrala.txt', $received_token . ' - ' . $saved_token);
    608607        return false;
    609608    }
  • quickcreator/trunk/includes/quickcreator/content-parsers/class-content-parser.php

    r3382260 r3383697  
    138138        $tmp_directory = download_url($image_url);
    139139        if (is_wp_error($tmp_directory)) {
    140             throw new \Exception('Image download failed: ' . $tmp_directory->get_error_message());
     140            throw new \Exception(
     141                sprintf(
     142                    'Image download failed [%s]: %s | Data: %s',
     143                    $tmp_directory->get_error_code(),
     144                    $tmp_directory->get_error_message(),
     145                    json_encode($tmp_directory->get_error_data(), JSON_UNESCAPED_UNICODE)
     146                )
     147            );
    141148        }
    142149        $content_type  = "";
     
    180187
    181188        if (is_wp_error($attachment_id)) {
    182             throw new \Exception('Image upload failed: ' . $attachment_id->get_error_message());
     189            throw new \Exception(
     190                sprintf(
     191                    'Image upload failed [%s]: %s | Data: %s',
     192                    $attachment_id->get_error_code(),
     193                    $attachment_id->get_error_message(),
     194                    json_encode($attachment_id->get_error_data(), JSON_UNESCAPED_UNICODE)
     195                )
     196            );
    183197        }
    184198
  • quickcreator/trunk/quickcreator.php

    r3382260 r3383697  
    44 * Plugin URI: https://wordpress.org/plugins/quickcreator/
    55 * Description: Create post with Quickcreator in WordPress
    6  * Version: 0.1.17
     6 * Version: 0.1.18
    77 * Author: Quickcreator
    88 * Author URI: https://quickcreator.io
     
    2222
    2323if ( ! defined( 'QUICKCREATOR_BLOG_VERSION' ) ) {
    24     define( 'QUICKCREATOR_BLOG_VERSION', '0.1.17' );
     24    define( 'QUICKCREATOR_BLOG_VERSION', '0.1.18' );
    2525}
    2626
  • quickcreator/trunk/readme.txt

    r3382260 r3383697  
    55Requires PHP: 7.4
    66Tested up to: 6.8.1
    7 Stable tag: 0.1.17
     7Stable tag: 0.1.18
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.