Closed margarita-boomCodes closed 1 month ago
Adding define( 'WP_DEVELOPMENT_MODE', 'theme' );
should resolve the issue when developing themes.
You can read more about developing modes here: https://make.wordpress.org/core/2023/07/14/configuring-development-mode-in-6-3/.
This issue was also reported in #64173, and I believe it is expected behavior, so I would like to close it.
Adding
define( 'WP_DEVELOPMENT_MODE', 'theme' );
should resolve the issue when developing themes.You can read more about developing modes here: https://make.wordpress.org/core/2023/07/14/configuring-development-mode-in-6-3/.
@Mamaduka Since the WP_DEVELOPMENT_MODE should not be used in production environment, I think this solution to increase the theme version number, could be more appropriate (even though not ideal)
Description
As of WP 6.6, the pattern metadata, such as title and slug, are being saved into a transient (_site_transient_wp_theme_files_patterns-xxxx). The problem is that this transient isn't updated, when the metadata of a pattern file unter the patterns directory, changes or a new file is added. Interestingly, the transient will be updated, when a pattern file is deleted.
The expected behavior would be to update the transient when a file is changed, added or deleted.
Step-by-step reproduction instructions
patterns
directory and add a new pattern_site_transient_wp_theme_files_patterns-xxxx
on the database's options table.Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.