mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-17 13:43:38 +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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user