Remove notices

This commit is contained in:
champsupertramp
2016-08-30 22:18:19 +08:00
parent 4938b1a4bd
commit 9da31fa799
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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
View File
@@ -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;
}
}