respect "enable_css" option and do not enqueue stylesheet if disabled
This commit is contained in:
parent
f0bf1c3542
commit
ca5c81356b
@ -269,6 +269,8 @@ class SCLiveticker {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Enqueue CSS if enabled.
|
||||||
|
if ( 1 === self::$options['enable_css'] ) {
|
||||||
wp_enqueue_style(
|
wp_enqueue_style(
|
||||||
'sclt-css',
|
'sclt-css',
|
||||||
SCLIVETICKER_BASE . 'styles/liveticker.min.css',
|
SCLIVETICKER_BASE . 'styles/liveticker.min.css',
|
||||||
@ -278,6 +280,7 @@ class SCLiveticker {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Process Ajax upload file
|
* Process Ajax upload file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user