Plugin Directory

Changeset 3330060


Ignore:
Timestamp:
07/18/2025 07:53:59 AM (9 months ago)
Author:
terresquall
Message:

Version 0.8.2 update.

Location:
imago-images/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • imago-images/trunk/imago-images.php

    r3123204 r3330060  
    55 * Description: Connects the WordPress Media Library to the Imago Images library. Adds a new Import from Imago tab to the Media Library popup that makes importing images from Imago more convenient.
    66 * Author: Imago Images
    7  * Version: 0.8.1
     7 * Version: 0.8.2
    88 * Requires PHP: 7.2
    99 * License: GPLv2 or later
  • imago-images/trunk/inc/class-Imago.API.php

    r3082930 r3330060  
    77class API {
    88   
    9     static $api_url = 'https://api1.imago-images.de';
     9    //static $api_url = 'https://api1.imago-images.de';
     10    static $api_url = 'https://api.imago-images.com/api';
    1011    private $api_user;
    1112    private $api_password;
     
    114115        }
    115116       
     117        // Get a query.
     118        $query = $this->query('/search', $args);
     119        if(is_a($query, '\WP_Error')) {
     120            return wp_send_json_error(array(
     121                'statusCode' => $query->get_error_code(),
     122                'title' => $query->get_error_message(),
     123                'message' => sprintf(esc_html__('Imago server query, error code %d','imago-images'), $query->get_error_code())
     124            ),$query->get_error_code());
     125        }
     126       
    116127        // The result.
    117         $response = json_decode($this->query('/search', $args),true);
     128        $response = json_decode($query, true);
    118129       
    119130        // If the response is an error, return it immediately.
  • imago-images/trunk/inc/class-Imago.Core.php

    r3088875 r3330060  
    4646       
    4747        // Get the options.
    48         $options = get_option(Settings::AUTOMATIC_IMAGE_CREDIT_OPTIONS);
     48        $options = get_option(Settings::AUTOMATIC_IMAGE_CREDIT_OPTIONS, array());
    4949        if(!in_array('require-author-crediting',$options)) return $url;
    5050       
  • imago-images/trunk/readme.txt

    r3090147 r3330060  
    55Requires at least: 5.0
    66Tested up to: 6.5.3
    7 Stable tag: 0.8.1
     7Stable tag: 0.8.2
    88Requires PHP: 7.2
    99License: GPLv2 or later
     
    4545== Changelog ==
    4646
     47= 0.8.2 =
     48* Updated the plugin to point to Imago's new API path.
     49* Fixed a bug that caused some new installs to be unable to load the plugin's settings properly.
     50* Now, when searching for images, if there is an error with the API server, the window will show an error message for that.
     51
    4752= 0.8.1 =
    4853* Fixed a bug that caused an image directly uploaded from the Image Gutenberg block to not be scanned for metadata and identified as an Imago image.
     
    5459
    5560== Upgrade Notice ==
     61
     62= 0.8.2 =
     63* To access this version, update the plugin normally via WordPress.
    5664
    5765= 0.8.1 =
Note: See TracChangeset for help on using the changeset viewer.