Changeset 3810867
- Timestamp:
- 11/19/2026 07:17:37 AM (6 days ago)
- Location:
- woof-creator-ai-content-builder
- Files:
-
- 2 added
- 8 edited
- 1 copied
-
tags/0.24.1 (copied) (copied from woof-creator-ai-content-builder/trunk )
-
tags/0.24.1/includes/Media/StockPhotos.php (modified) (1 diff)
-
tags/0.24.1/includes/Renderers/PreviewDocument.php (modified) (2 diffs)
-
tags/0.24.1/includes/Renderers/ThemeStylesheets.php (added)
-
tags/0.24.1/readme.txt (modified) (2 diffs)
-
tags/0.24.1/woof-creator-ai-content-builder.php (modified) (2 diffs)
-
trunk/includes/Media/StockPhotos.php (modified) (1 diff)
-
trunk/includes/Renderers/PreviewDocument.php (modified) (2 diffs)
-
trunk/includes/Renderers/ThemeStylesheets.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/woof-creator-ai-content-builder.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woof-creator-ai-content-builder/tags/0.24.1/includes/Media/StockPhotos.php
r3810744 r3810867 158 158 MediaUsage::count( 'searches', count( $pending ) ); 159 159 $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 ); 162 168 if ( $again ) { 163 169 $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 22 22 /** 23 23 * 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. 25 25 * 26 26 * @param array<string, mixed> $spec … … 34 34 $fonts = self::fonts( $spec['design'] ); 35 35 $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(); 36 38 37 39 $head = '<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">'; 38 40 // 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 } 40 47 if ( $fonts ) { 41 48 $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 5 5 Tested up to: 7.1 6 6 Requires PHP: 8.0 7 Stable tag: 0.24. 07 Stable tag: 0.24.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 138 138 == Changelog == 139 139 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 140 144 = 0.24.0 = 141 145 * First release on WordPress.org. -
woof-creator-ai-content-builder/tags/0.24.1/woof-creator-ai-content-builder.php
r3810744 r3810867 4 4 * Plugin URI: https://woofcreator.com/ 5 5 * 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. 06 * Version: 0.24.1 7 7 * Requires at least: 6.7 8 8 * Requires PHP: 8.0 … … 30 30 } 31 31 32 define( 'WPAIC_VERSION', '0.24. 0' );32 define( 'WPAIC_VERSION', '0.24.1' ); 33 33 define( 'WPAIC_FILE', __FILE__ ); 34 34 define( 'WPAIC_DIR', plugin_dir_path( __FILE__ ) ); -
woof-creator-ai-content-builder/trunk/includes/Media/StockPhotos.php
r3810744 r3810867 158 158 MediaUsage::count( 'searches', count( $pending ) ); 159 159 $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 ); 162 168 if ( $again ) { 163 169 $responses = array_replace( $responses, ParallelHttp::run( array_intersect_key( $pending, $again ) ) ); -
woof-creator-ai-content-builder/trunk/includes/Renderers/PreviewDocument.php
r3810744 r3810867 22 22 /** 23 23 * 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. 25 25 * 26 26 * @param array<string, mixed> $spec … … 34 34 $fonts = self::fonts( $spec['design'] ); 35 35 $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(); 36 38 37 39 $head = '<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">'; 38 40 // 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 } 40 47 if ( $fonts ) { 41 48 $head .= '<link rel="stylesheet" href="' . esc_url( $fonts ) . '">'; // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedStylesheet -
woof-creator-ai-content-builder/trunk/readme.txt
r3810744 r3810867 5 5 Tested up to: 7.1 6 6 Requires PHP: 8.0 7 Stable tag: 0.24. 07 Stable tag: 0.24.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 138 138 == Changelog == 139 139 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 140 144 = 0.24.0 = 141 145 * First release on WordPress.org. -
woof-creator-ai-content-builder/trunk/woof-creator-ai-content-builder.php
r3810744 r3810867 4 4 * Plugin URI: https://woofcreator.com/ 5 5 * 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. 06 * Version: 0.24.1 7 7 * Requires at least: 6.7 8 8 * Requires PHP: 8.0 … … 30 30 } 31 31 32 define( 'WPAIC_VERSION', '0.24. 0' );32 define( 'WPAIC_VERSION', '0.24.1' ); 33 33 define( 'WPAIC_FILE', __FILE__ ); 34 34 define( 'WPAIC_DIR', plugin_dir_path( __FILE__ ) );
Note:
See TracChangeset
for help on using the changeset viewer.