Plugin Directory

Changeset 3810867


Ignore:
Timestamp:
11/19/2026 07:17:37 AM (6 days ago)
Author:
woofcreator
Message:

Release 0.24.1

Location:
woof-creator-ai-content-builder
Files:
2 added
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • woof-creator-ai-content-builder/tags/0.24.1/includes/Media/StockPhotos.php

    r3810744 r3810867  
    158158                MediaUsage::count( 'searches', count( $pending ) );
    159159                $responses = ParallelHttp::run( $pending );
    160                 // A timeout is usually a slow moment: one more try.
    161                 $again = array_filter( $responses, static fn( $r ) => is_wp_error( $r ) && ParallelHttp::timed_out( $r ) );
     160                // A timeout or a gateway error (Openverse answers 502-504 when it's slow) is
     161                // usually a slow moment: one more try.
     162                $again = array_filter(
     163                        $responses,
     164                        static fn( $r ) => is_wp_error( $r )
     165                                ? ParallelHttp::timed_out( $r )
     166                                : in_array( (int) $r['status'], array( 502, 503, 504 ), true )
     167                );
    162168                if ( $again ) {
    163169                        $responses = array_replace( $responses, ParallelHttp::run( array_intersect_key( $pending, $again ) ) );
  • woof-creator-ai-content-builder/tags/0.24.1/includes/Renderers/PreviewDocument.php

    r3810744 r3810867  
    2222        /**
    2323         * Self-contained HTML document for the live preview iframe, styled with the
    24          * active theme's global styles so "theme" mode previews faithfully.
     24         * active theme's stylesheets and global styles so "theme" mode previews faithfully.
    2525         *
    2626         * @param array<string, mixed> $spec
    … …  
    3434                $fonts = self::fonts( $spec['design'] );
    3535                $theme = function_exists( 'wp_get_global_stylesheet' ) ? wp_get_global_stylesheet() : '';
     36                // What the theme loads on the front end: a classic theme's CSS is rarely all in style.css.
     37                $sheets = ThemeStylesheets::get();
    3638
    3739                $head = '<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">';
    3840                // Standalone srcdoc document for the preview iframe: the enqueue API doesn't apply here.
    39                 $head .= '<link rel="stylesheet" href="' . esc_url( get_stylesheet_uri() ) . '">'; // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedStylesheet
     41                foreach ( $sheets['urls'] ? $sheets['urls'] : array( get_stylesheet_uri() ) as $url ) {
     42                        $head .= '<link rel="stylesheet" href="' . esc_url( $url ) . '">'; // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedStylesheet
     43                }
     44                if ( $sheets['css'] ) {
     45                        $head .= '<style>' . $sheets['css'] . '</style>';
     46                }
    4047                if ( $fonts ) {
    4148                        $head .= '<link rel="stylesheet" href="' . esc_url( $fonts ) . '">'; // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedStylesheet
  • woof-creator-ai-content-builder/tags/0.24.1/readme.txt

    r3810744 r3810867  
    55Tested up to: 7.1
    66Requires PHP: 8.0
    7 Stable tag: 0.24.0
     7Stable tag: 0.24.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    138138== Changelog ==
    139139
     140= 0.24.1 =
     141* Fixed: "Match my theme" previews now use your theme's own stylesheets and Customizer settings, so the preview shows the same fonts and colors as your site (GeneratePress, Astra, Kadence and other classic themes).
     142* Improved: a photo search that Openverse answers with a temporary server error is tried once more.
     143
    140144= 0.24.0 =
    141145* First release on WordPress.org.
  • woof-creator-ai-content-builder/tags/0.24.1/woof-creator-ai-content-builder.php

    r3810744 r3810867  
    44 * Plugin URI:        https://woofcreator.com/
    55 * Description:       Turn a prompt or a draft into a nicely formatted page or post in your theme's style, then refine it by chatting. Bring your own AI key.
    6  * Version:           0.24.0
     6 * Version:           0.24.1
    77 * Requires at least: 6.7
    88 * Requires PHP:      8.0
    … …  
    3030}
    3131
    32 define( 'WPAIC_VERSION', '0.24.0' );
     32define( 'WPAIC_VERSION', '0.24.1' );
    3333define( 'WPAIC_FILE', __FILE__ );
    3434define( 'WPAIC_DIR', plugin_dir_path( __FILE__ ) );
  • woof-creator-ai-content-builder/trunk/includes/Media/StockPhotos.php

    r3810744 r3810867  
    158158                MediaUsage::count( 'searches', count( $pending ) );
    159159                $responses = ParallelHttp::run( $pending );
    160                 // A timeout is usually a slow moment: one more try.
    161                 $again = array_filter( $responses, static fn( $r ) => is_wp_error( $r ) && ParallelHttp::timed_out( $r ) );
     160                // A timeout or a gateway error (Openverse answers 502-504 when it's slow) is
     161                // usually a slow moment: one more try.
     162                $again = array_filter(
     163                        $responses,
     164                        static fn( $r ) => is_wp_error( $r )
     165                                ? ParallelHttp::timed_out( $r )
     166                                : in_array( (int) $r['status'], array( 502, 503, 504 ), true )
     167                );
    162168                if ( $again ) {
    163169                        $responses = array_replace( $responses, ParallelHttp::run( array_intersect_key( $pending, $again ) ) );
  • woof-creator-ai-content-builder/trunk/includes/Renderers/PreviewDocument.php

    r3810744 r3810867  
    2222        /**
    2323         * Self-contained HTML document for the live preview iframe, styled with the
    24          * active theme's global styles so "theme" mode previews faithfully.
     24         * active theme's stylesheets and global styles so "theme" mode previews faithfully.
    2525         *
    2626         * @param array<string, mixed> $spec
    … …  
    3434                $fonts = self::fonts( $spec['design'] );
    3535                $theme = function_exists( 'wp_get_global_stylesheet' ) ? wp_get_global_stylesheet() : '';
     36                // What the theme loads on the front end: a classic theme's CSS is rarely all in style.css.
     37                $sheets = ThemeStylesheets::get();
    3638
    3739                $head = '<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">';
    3840                // Standalone srcdoc document for the preview iframe: the enqueue API doesn't apply here.
    39                 $head .= '<link rel="stylesheet" href="' . esc_url( get_stylesheet_uri() ) . '">'; // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedStylesheet
     41                foreach ( $sheets['urls'] ? $sheets['urls'] : array( get_stylesheet_uri() ) as $url ) {
     42                        $head .= '<link rel="stylesheet" href="' . esc_url( $url ) . '">'; // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedStylesheet
     43                }
     44                if ( $sheets['css'] ) {
     45                        $head .= '<style>' . $sheets['css'] . '</style>';
     46                }
    4047                if ( $fonts ) {
    4148                        $head .= '<link rel="stylesheet" href="' . esc_url( $fonts ) . '">'; // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedStylesheet
  • woof-creator-ai-content-builder/trunk/readme.txt

    r3810744 r3810867  
    55Tested up to: 7.1
    66Requires PHP: 8.0
    7 Stable tag: 0.24.0
     7Stable tag: 0.24.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    138138== Changelog ==
    139139
     140= 0.24.1 =
     141* Fixed: "Match my theme" previews now use your theme's own stylesheets and Customizer settings, so the preview shows the same fonts and colors as your site (GeneratePress, Astra, Kadence and other classic themes).
     142* Improved: a photo search that Openverse answers with a temporary server error is tried once more.
     143
    140144= 0.24.0 =
    141145* First release on WordPress.org.
  • woof-creator-ai-content-builder/trunk/woof-creator-ai-content-builder.php

    r3810744 r3810867  
    44 * Plugin URI:        https://woofcreator.com/
    55 * Description:       Turn a prompt or a draft into a nicely formatted page or post in your theme's style, then refine it by chatting. Bring your own AI key.
    6  * Version:           0.24.0
     6 * Version:           0.24.1
    77 * Requires at least: 6.7
    88 * Requires PHP:      8.0
    … …  
    3030}
    3131
    32 define( 'WPAIC_VERSION', '0.24.0' );
     32define( 'WPAIC_VERSION', '0.24.1' );
    3333define( 'WPAIC_FILE', __FILE__ );
    3434define( 'WPAIC_DIR', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.