Changeset 3330060
- Timestamp:
- 07/18/2025 07:53:59 AM (9 months ago)
- Location:
- imago-images/trunk
- Files:
-
- 4 edited
-
imago-images.php (modified) (1 diff)
-
inc/class-Imago.API.php (modified) (2 diffs)
-
inc/class-Imago.Core.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
imago-images/trunk/imago-images.php
r3123204 r3330060 5 5 * 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. 6 6 * Author: Imago Images 7 * Version: 0.8. 17 * Version: 0.8.2 8 8 * Requires PHP: 7.2 9 9 * License: GPLv2 or later -
imago-images/trunk/inc/class-Imago.API.php
r3082930 r3330060 7 7 class API { 8 8 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'; 10 11 private $api_user; 11 12 private $api_password; … … 114 115 } 115 116 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 116 127 // The result. 117 $response = json_decode($ this->query('/search', $args),true);128 $response = json_decode($query, true); 118 129 119 130 // If the response is an error, return it immediately. -
imago-images/trunk/inc/class-Imago.Core.php
r3088875 r3330060 46 46 47 47 // Get the options. 48 $options = get_option(Settings::AUTOMATIC_IMAGE_CREDIT_OPTIONS );48 $options = get_option(Settings::AUTOMATIC_IMAGE_CREDIT_OPTIONS, array()); 49 49 if(!in_array('require-author-crediting',$options)) return $url; 50 50 -
imago-images/trunk/readme.txt
r3090147 r3330060 5 5 Requires at least: 5.0 6 6 Tested up to: 6.5.3 7 Stable tag: 0.8. 17 Stable tag: 0.8.2 8 8 Requires PHP: 7.2 9 9 License: GPLv2 or later … … 45 45 == Changelog == 46 46 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 47 52 = 0.8.1 = 48 53 * 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. … … 54 59 55 60 == Upgrade Notice == 61 62 = 0.8.2 = 63 * To access this version, update the plugin normally via WordPress. 56 64 57 65 = 0.8.1 =
Note: See TracChangeset
for help on using the changeset viewer.