mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-15 20:53:39 +09:00
Sync recent update
This commit is contained in:
+3
-4
@@ -18,11 +18,10 @@ class UM_Enqueue {
|
||||
$exclude = um_get_option('js_css_exclude');
|
||||
if ( $exclude && is_array( $exclude ) ) {
|
||||
|
||||
$c_url = untrailingslashit( $ultimatemember->permalinks->get_current_url(true) );
|
||||
$c_url = trailingslashit( $ultimatemember->permalinks->get_current_url(true) );
|
||||
|
||||
foreach( $exclude as $url ) {
|
||||
$url = untrailingslashit( $url );
|
||||
if ( $url == $c_url )
|
||||
foreach( $exclude as $match ) {
|
||||
if ( strstr( $c_url, $match ) )
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -1413,9 +1413,9 @@ $this->sections[] = array(
|
||||
'id' => 'js_css_exclude',
|
||||
'type' => 'multi_text',
|
||||
'default' => array(),
|
||||
'title' => __( 'Exclude URLs from loading plugin CSS and JS' ),
|
||||
'desc' => __( 'Here you can exclude specific URLs from loading the plugin CSS and JS files.' ),
|
||||
'add_text' => __('Add New URL'),
|
||||
'title' => __( 'Never load plugin JS and CSS on the following pages' ),
|
||||
'desc' => __( 'Enter a url or page slug (e.g /about/) to disable loading the plugin\'s css and js on that page.' ),
|
||||
'add_text' => __('Add New Page'),
|
||||
),
|
||||
|
||||
array(
|
||||
|
||||
Reference in New Issue
Block a user