Changeset 3065069
- Timestamp:
- 04/04/2024 10:19:37 PM (2 years ago)
- Location:
- ai-image-generator
- Files:
-
- 8 edited
- 1 copied
-
tags/1.0.5 (copied) (copied from ai-image-generator/trunk)
-
tags/1.0.5/README.txt (modified) (3 diffs)
-
tags/1.0.5/admin/class-ai-wp-cgntvdnmc-admin.php (modified) (3 diffs)
-
tags/1.0.5/ai-image-generator.php (modified) (2 diffs)
-
tags/1.0.5/lib/composer/installed.php (modified) (2 diffs)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/admin/class-ai-wp-cgntvdnmc-admin.php (modified) (3 diffs)
-
trunk/ai-image-generator.php (modified) (2 diffs)
-
trunk/lib/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ai-image-generator/tags/1.0.5/README.txt
r3061527 r3065069 6 6 Requires at least: 4.9 7 7 Tested up to: 6.5 8 Stable tag: 1.0. 48 Stable tag: 1.0.5 9 9 Requires PHP: 7.4 10 10 License: GPLv2 or later … … 159 159 == Changelog == 160 160 161 = 1.0.5 = 162 - Fix: Warning of undefined function thrown in some edge cases. 163 161 164 = 1.0.4 = 162 165 - NEW: AI Image Generator is now integrated in Media Library modal for easier access. … … 169 172 170 173 = 1.0.2 = 171 172 174 - Code refactoring and performance increase for some REACT components 173 175 - Now the tools are only available after setting up your API key since you can't use them anyway without one -
ai-image-generator/tags/1.0.5/admin/class-ai-wp-cgntvdnmc-admin.php
r3061527 r3065069 193 193 function enqueue_ai_image_generator_on_enqueue_media() 194 194 { 195 $currentScreen = get_current_screen(); 195 $currentScreenBase = null; 196 197 if ( function_exists( 'get_current_screen' ) ) { 198 $currentScreen = get_current_screen(); 199 $currentScreenBase = $currentScreen->base; 200 } 201 196 202 wp_enqueue_style( 197 203 $this->plugin_name, … … 218 224 'variationsResolution' => get_option( 'ai_wp_cgntvdnmc_resolution', '' ), 219 225 'noOfVariations' => get_option( 'ai_wp_cgntvdnmc_variations_num', '' ), 220 'currentScreen' => $currentScreen ->base,226 'currentScreen' => $currentScreenBase, 221 227 ); 222 228 wp_enqueue_script( … … 249 255 * class. 250 256 */ 251 $currentScreen = get_current_screen(); 252 if ( $currentScreen->base == 'media_page_ai-wp-cgntvdnmc' ) { 257 $currentScreenBase = null; 258 $currentScreenId = null; 259 260 if ( function_exists( 'get_current_screen' ) ) { 261 $currentScreen = get_current_screen(); 262 $currentScreenBase = $currentScreen->base; 263 $currentScreenId = $currentScreen->id; 264 } 265 266 if ( $currentScreenBase === 'media_page_ai-wp-cgntvdnmc' ) { 253 267 wp_enqueue_media(); 254 268 } 255 269 256 if ( $currentScreen ->id === 'upload' ) {270 if ( $currentScreenId === 'upload' ) { 257 271 wp_enqueue_script( 258 272 'ai-wp-cgntvdnmc-media-library', -
ai-image-generator/tags/1.0.5/ai-image-generator.php
r3061527 r3065069 6 6 * Plugin URI: https://cognitivedynamics.ai/ai-image-generator/ 7 7 * Description: This plugin uses OpenAI to generate images based on a text prompt or an image. 8 * Version: 1.0. 48 * Version: 1.0.5 9 9 * Author: Cognitive Dynamics 10 10 * Author URI: https://cognitivedynamics.ai … … 76 76 * Rename this for your plugin and update it as you release new versions. 77 77 */ 78 define( 'AI_IMAGE_GENERATOR_VERSION', '1.0. 4' );78 define( 'AI_IMAGE_GENERATOR_VERSION', '1.0.5' ); 79 79 /** 80 80 * The code that runs during plugin activation. -
ai-image-generator/tags/1.0.5/lib/composer/installed.php
r3061527 r3065069 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' f752e96f5f3a4bdea85de59bc5b9a0a48430a731',6 'reference' => 'a5a65e4ac4bd1423d7cf5c9881384457f08f5f1a', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => ' f752e96f5f3a4bdea85de59bc5b9a0a48430a731',16 'reference' => 'a5a65e4ac4bd1423d7cf5c9881384457f08f5f1a', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
ai-image-generator/trunk/README.txt
r3061527 r3065069 6 6 Requires at least: 4.9 7 7 Tested up to: 6.5 8 Stable tag: 1.0. 48 Stable tag: 1.0.5 9 9 Requires PHP: 7.4 10 10 License: GPLv2 or later … … 159 159 == Changelog == 160 160 161 = 1.0.5 = 162 - Fix: Warning of undefined function thrown in some edge cases. 163 161 164 = 1.0.4 = 162 165 - NEW: AI Image Generator is now integrated in Media Library modal for easier access. … … 169 172 170 173 = 1.0.2 = 171 172 174 - Code refactoring and performance increase for some REACT components 173 175 - Now the tools are only available after setting up your API key since you can't use them anyway without one -
ai-image-generator/trunk/admin/class-ai-wp-cgntvdnmc-admin.php
r3061527 r3065069 193 193 function enqueue_ai_image_generator_on_enqueue_media() 194 194 { 195 $currentScreen = get_current_screen(); 195 $currentScreenBase = null; 196 197 if ( function_exists( 'get_current_screen' ) ) { 198 $currentScreen = get_current_screen(); 199 $currentScreenBase = $currentScreen->base; 200 } 201 196 202 wp_enqueue_style( 197 203 $this->plugin_name, … … 218 224 'variationsResolution' => get_option( 'ai_wp_cgntvdnmc_resolution', '' ), 219 225 'noOfVariations' => get_option( 'ai_wp_cgntvdnmc_variations_num', '' ), 220 'currentScreen' => $currentScreen ->base,226 'currentScreen' => $currentScreenBase, 221 227 ); 222 228 wp_enqueue_script( … … 249 255 * class. 250 256 */ 251 $currentScreen = get_current_screen(); 252 if ( $currentScreen->base == 'media_page_ai-wp-cgntvdnmc' ) { 257 $currentScreenBase = null; 258 $currentScreenId = null; 259 260 if ( function_exists( 'get_current_screen' ) ) { 261 $currentScreen = get_current_screen(); 262 $currentScreenBase = $currentScreen->base; 263 $currentScreenId = $currentScreen->id; 264 } 265 266 if ( $currentScreenBase === 'media_page_ai-wp-cgntvdnmc' ) { 253 267 wp_enqueue_media(); 254 268 } 255 269 256 if ( $currentScreen ->id === 'upload' ) {270 if ( $currentScreenId === 'upload' ) { 257 271 wp_enqueue_script( 258 272 'ai-wp-cgntvdnmc-media-library', -
ai-image-generator/trunk/ai-image-generator.php
r3061527 r3065069 6 6 * Plugin URI: https://cognitivedynamics.ai/ai-image-generator/ 7 7 * Description: This plugin uses OpenAI to generate images based on a text prompt or an image. 8 * Version: 1.0. 48 * Version: 1.0.5 9 9 * Author: Cognitive Dynamics 10 10 * Author URI: https://cognitivedynamics.ai … … 76 76 * Rename this for your plugin and update it as you release new versions. 77 77 */ 78 define( 'AI_IMAGE_GENERATOR_VERSION', '1.0. 4' );78 define( 'AI_IMAGE_GENERATOR_VERSION', '1.0.5' ); 79 79 /** 80 80 * The code that runs during plugin activation. -
ai-image-generator/trunk/lib/composer/installed.php
r3061527 r3065069 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' f752e96f5f3a4bdea85de59bc5b9a0a48430a731',6 'reference' => 'a5a65e4ac4bd1423d7cf5c9881384457f08f5f1a', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => ' f752e96f5f3a4bdea85de59bc5b9a0a48430a731',16 'reference' => 'a5a65e4ac4bd1423d7cf5c9881384457f08f5f1a', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.