Plugin Directory

Changeset 3065069


Ignore:
Timestamp:
04/04/2024 10:19:37 PM (2 years ago)
Author:
upcasted
Message:

Update to version 1.0.5 from GitHub

Location:
ai-image-generator
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ai-image-generator/tags/1.0.5/README.txt

    r3061527 r3065069  
    66Requires at least: 4.9
    77Tested up to: 6.5
    8 Stable tag: 1.0.4
     8Stable tag: 1.0.5
    99Requires PHP: 7.4
    1010License: GPLv2 or later
     
    159159== Changelog ==
    160160
     161= 1.0.5 =
     162- Fix: Warning of undefined function thrown in some edge cases.
     163
    161164= 1.0.4 =
    162165- NEW: AI Image Generator is now integrated in Media Library modal for easier access.
     
    169172
    170173= 1.0.2 =
    171 
    172174- Code refactoring and performance increase for some REACT components
    173175- 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  
    193193    function enqueue_ai_image_generator_on_enqueue_media()
    194194    {
    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       
    196202        wp_enqueue_style(
    197203            $this->plugin_name,
     
    218224            'variationsResolution' => get_option( 'ai_wp_cgntvdnmc_resolution', '' ),
    219225            'noOfVariations'       => get_option( 'ai_wp_cgntvdnmc_variations_num', '' ),
    220             'currentScreen'        => $currentScreen->base,
     226            'currentScreen'        => $currentScreenBase,
    221227        );
    222228        wp_enqueue_script(
     
    249255         * class.
    250256         */
    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' ) {
    253267            wp_enqueue_media();
    254268        }
    255269       
    256         if ( $currentScreen->id === 'upload' ) {
     270        if ( $currentScreenId === 'upload' ) {
    257271            wp_enqueue_script(
    258272                'ai-wp-cgntvdnmc-media-library',
  • ai-image-generator/tags/1.0.5/ai-image-generator.php

    r3061527 r3065069  
    66 * Plugin URI:        https://cognitivedynamics.ai/ai-image-generator/
    77 * Description:       This plugin uses OpenAI to generate images based on a text prompt or an image.
    8  * Version:           1.0.4
     8 * Version:           1.0.5
    99 * Author:            Cognitive Dynamics
    1010 * Author URI:        https://cognitivedynamics.ai
     
    7676     * Rename this for your plugin and update it as you release new versions.
    7777     */
    78     define( 'AI_IMAGE_GENERATOR_VERSION', '1.0.4' );
     78    define( 'AI_IMAGE_GENERATOR_VERSION', '1.0.5' );
    7979    /**
    8080     * The code that runs during plugin activation.
  • ai-image-generator/tags/1.0.5/lib/composer/installed.php

    r3061527 r3065069  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => 'f752e96f5f3a4bdea85de59bc5b9a0a48430a731',
     6        'reference' => 'a5a65e4ac4bd1423d7cf5c9881384457f08f5f1a',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => 'f752e96f5f3a4bdea85de59bc5b9a0a48430a731',
     16            'reference' => 'a5a65e4ac4bd1423d7cf5c9881384457f08f5f1a',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
  • ai-image-generator/trunk/README.txt

    r3061527 r3065069  
    66Requires at least: 4.9
    77Tested up to: 6.5
    8 Stable tag: 1.0.4
     8Stable tag: 1.0.5
    99Requires PHP: 7.4
    1010License: GPLv2 or later
     
    159159== Changelog ==
    160160
     161= 1.0.5 =
     162- Fix: Warning of undefined function thrown in some edge cases.
     163
    161164= 1.0.4 =
    162165- NEW: AI Image Generator is now integrated in Media Library modal for easier access.
     
    169172
    170173= 1.0.2 =
    171 
    172174- Code refactoring and performance increase for some REACT components
    173175- 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  
    193193    function enqueue_ai_image_generator_on_enqueue_media()
    194194    {
    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       
    196202        wp_enqueue_style(
    197203            $this->plugin_name,
     
    218224            'variationsResolution' => get_option( 'ai_wp_cgntvdnmc_resolution', '' ),
    219225            'noOfVariations'       => get_option( 'ai_wp_cgntvdnmc_variations_num', '' ),
    220             'currentScreen'        => $currentScreen->base,
     226            'currentScreen'        => $currentScreenBase,
    221227        );
    222228        wp_enqueue_script(
     
    249255         * class.
    250256         */
    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' ) {
    253267            wp_enqueue_media();
    254268        }
    255269       
    256         if ( $currentScreen->id === 'upload' ) {
     270        if ( $currentScreenId === 'upload' ) {
    257271            wp_enqueue_script(
    258272                'ai-wp-cgntvdnmc-media-library',
  • ai-image-generator/trunk/ai-image-generator.php

    r3061527 r3065069  
    66 * Plugin URI:        https://cognitivedynamics.ai/ai-image-generator/
    77 * Description:       This plugin uses OpenAI to generate images based on a text prompt or an image.
    8  * Version:           1.0.4
     8 * Version:           1.0.5
    99 * Author:            Cognitive Dynamics
    1010 * Author URI:        https://cognitivedynamics.ai
     
    7676     * Rename this for your plugin and update it as you release new versions.
    7777     */
    78     define( 'AI_IMAGE_GENERATOR_VERSION', '1.0.4' );
     78    define( 'AI_IMAGE_GENERATOR_VERSION', '1.0.5' );
    7979    /**
    8080     * The code that runs during plugin activation.
  • ai-image-generator/trunk/lib/composer/installed.php

    r3061527 r3065069  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => 'f752e96f5f3a4bdea85de59bc5b9a0a48430a731',
     6        'reference' => 'a5a65e4ac4bd1423d7cf5c9881384457f08f5f1a',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => 'f752e96f5f3a4bdea85de59bc5b9a0a48430a731',
     16            'reference' => 'a5a65e4ac4bd1423d7cf5c9881384457f08f5f1a',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.