Test no shell output

This commit is contained in:
Marcus Quinn
2025-03-13 23:54:06 +00:00
parent 9e43175f96
commit 4df4e66f89
2 changed files with 25 additions and 8 deletions

6
git_status_output.txt Normal file
View File

@ -0,0 +1,6 @@
On branch main
Untracked files:
(use "git add <file>..." to include in what will be committed)
git_status_output.txt
nothing added to commit but untracked files present (use "git add" to track)

View File

@ -74,17 +74,28 @@ function wpa_superstar_admin_assets() {
} }
add_action( 'admin_enqueue_scripts', 'wpa_superstar_admin_assets' ); add_action( 'admin_enqueue_scripts', 'wpa_superstar_admin_assets' );
function lazyLoad_assets() { /**
* Register and enqueue lazy loading assets
*/
function wpa_superstar_lazy_load_assets() {
// Enqueue styles for lazy loading // Enqueue styles for lazy loading
wp_enqueue_style( wp_enqueue_style(
'wpa-superstar-lazy-load', 'wpa-superstar-lazy-load',
plugins_url( 'public/css/wpa-superstar-lazy-load.css', __FILE__ ), plugins_url( 'public/css/wpa-superstar-lazy-load.css', __FILE__ ),
[], [],
WPA_SUPERSTAR_VERSION WPA_SUPERSTAR_VERSION
); );
} }
// Hook the function to appropriate WordPress action
add_action( 'wp_enqueue_scripts', 'wpa_superstar_lazy_load_assets' );
function minifyCSS($css) { /**
* Minify CSS content to reduce file size
*
* @param string $css The CSS content to minify
* @return string Minified CSS
*/
function wpa_superstar_minify_css($css) {
// Remove comments // Remove comments
$css = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $css); $css = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $css);
// Remove space after colons // Remove space after colons
@ -92,4 +103,4 @@ function minifyCSS($css) {
// Remove whitespace // Remove whitespace
$css = str_replace(["\r\n", "\r", "\n", "\t", ' ', ' ', ' '], '', $css); $css = str_replace(["\r\n", "\r", "\n", "\t", ' ', ' ', ' '], '', $css);
return $css; return $css;
} }