mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Remove notices
This commit is contained in:
@@ -274,6 +274,8 @@
|
||||
$role = um_get_option('default_role');
|
||||
}
|
||||
|
||||
if( empty( $role ) ) return;
|
||||
|
||||
$role = apply_filters('um_register_hidden_role_field', $role );
|
||||
if( $role ){
|
||||
echo '<input type="hidden" name="role" id="role" value="' . $role . '" />';
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ class UM_Enqueue {
|
||||
$c_url = $ultimatemember->permalinks->get_current_url( get_option('permalink_structure') );
|
||||
|
||||
foreach( $exclude as $match ) {
|
||||
if ( strstr( $c_url, untrailingslashit( $match ) ) ) {
|
||||
if ( ! empty( $c_url ) && strstr( $c_url, untrailingslashit( $match ) ) ) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user