Changeset 3290004
- Timestamp:
- 05/08/2025 03:53:45 PM (8 months ago)
- Location:
- custom-css-to-external-file/trunk
- Files:
-
- 2 edited
-
custom-css-to-external-file.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-css-to-external-file/trunk/custom-css-to-external-file.php
r3264384 r3290004 4 4 Plugin URI: https://vortica.net/custom-css-to-external-file 5 5 Description: Moves the Custom CSS from the WordPress Customizer to an external file and includes it in the site's head to improve performance and persistence. 6 Version: 1.06 Version: 2.0 7 7 Author: Vortica 8 8 Author URI: https://vortica.net/ … … 43 43 if (!$is_active) return; 44 44 45 // Remove inline output from WordPress 46 remove_action('wp_head', 'wp_custom_css_cb', 101); 45 // Only remove inline CSS when not in Customizer live preview 46 if ( ! is_customize_preview() ) { 47 remove_action('wp_head', 'wp_custom_css_cb', 101); 48 } 47 49 48 50 $upload_dir = wp_upload_dir(); -
custom-css-to-external-file/trunk/readme.txt
r3264384 r3290004 3 3 Tags: css, customizer, performance, optimization 4 4 Requires at least: 5.0 5 Tested up to: 6. 75 Tested up to: 6.8.1 6 6 Requires PHP: 7.0 7 7 Stable tag: 1.0 … … 32 32 = 1.0 = 33 33 * Initial release. 34 = 2.0 = 35 * Allows to Custom CSS Edition in Backoffice and see the changes reflected live 36 34 37 35 38 == Frequently Asked Questions ==
Note: See TracChangeset
for help on using the changeset viewer.