Test no shell output
This commit is contained in:
6
git_status_output.txt
Normal file
6
git_status_output.txt
Normal 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)
|
@ -74,7 +74,10 @@ function 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
|
||||
wp_enqueue_style(
|
||||
'wpa-superstar-lazy-load',
|
||||
@ -83,8 +86,16 @@ function lazyLoad_assets() {
|
||||
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
|
||||
$css = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $css);
|
||||
// Remove space after colons
|
||||
|
Reference in New Issue
Block a user