Plugin Directory

Changeset 3485440


Ignore:
Timestamp:
03/18/2026 08:59:03 AM (2 weeks ago)
Author:
previewai
Message:

Release 1.3.3 – Fix display rules

Location:
preview-ai
Files:
2 edited
26 copied

Legend:

Unmodified
Added
Removed
  • preview-ai/tags/1.3.3/preview-ai.php

    r3483756 r3485440  
    1010 * Plugin URI:        https://previewai.app/
    1111 * Description:       Preview AI is a plugin that allows your customers to preview your products in real-time using AI image generation.
    12  * Version:           1.3.2
     12 * Version:           1.3.3
    1313 * Author:            Preview AI
    1414 * Author URI:        https://profiles.wordpress.org/previewai/
     
    2828 * Current plugin version.
    2929 */
    30 define( 'PREVIEW_AI_VERSION', '1.3.2' );
     30define( 'PREVIEW_AI_VERSION', '1.3.3' );
    3131define( 'PREVIEW_AI_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
    3232
  • preview-ai/tags/1.3.3/public/class-preview-ai-public.php

    r3479503 r3485440  
    192192        }
    193193
    194         if ( ! self::is_enabled_for_product( $product->get_id() ) ) {
    195             return;
    196         }
    197 
    198194        // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML template output; all dynamic values escaped with esc_html/esc_attr/esc_url in preview-ai-public-display.php.
    199195        echo self::render_widget_output( $product->get_id() );
     
    209205     */
    210206    public static function render_widget_output( $product_id, $overrides = array() ) {
    211         if ( ! $product_id ) {
     207        if ( ! $product_id || ! self::is_enabled_for_product( $product_id ) ) {
    212208            return '';
    213209        }
  • preview-ai/trunk/preview-ai.php

    r3483756 r3485440  
    1010 * Plugin URI:        https://previewai.app/
    1111 * Description:       Preview AI is a plugin that allows your customers to preview your products in real-time using AI image generation.
    12  * Version:           1.3.2
     12 * Version:           1.3.3
    1313 * Author:            Preview AI
    1414 * Author URI:        https://profiles.wordpress.org/previewai/
     
    2828 * Current plugin version.
    2929 */
    30 define( 'PREVIEW_AI_VERSION', '1.3.2' );
     30define( 'PREVIEW_AI_VERSION', '1.3.3' );
    3131define( 'PREVIEW_AI_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
    3232
  • preview-ai/trunk/public/class-preview-ai-public.php

    r3479503 r3485440  
    192192        }
    193193
    194         if ( ! self::is_enabled_for_product( $product->get_id() ) ) {
    195             return;
    196         }
    197 
    198194        // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML template output; all dynamic values escaped with esc_html/esc_attr/esc_url in preview-ai-public-display.php.
    199195        echo self::render_widget_output( $product->get_id() );
     
    209205     */
    210206    public static function render_widget_output( $product_id, $overrides = array() ) {
    211         if ( ! $product_id ) {
     207        if ( ! $product_id || ! self::is_enabled_for_product( $product_id ) ) {
    212208            return '';
    213209        }
Note: See TracChangeset for help on using the changeset viewer.