mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- intermediate results with sanitizing form handlers;
This commit is contained in:
@@ -100,8 +100,9 @@ if ( ! class_exists( 'um\core\Options' ) ) {
|
||||
* @param $option_id
|
||||
*/
|
||||
function remove( $option_id ) {
|
||||
if ( ! empty( $this->options[ $option_id ] ) )
|
||||
if ( ! empty( $this->options[ $option_id ] ) ) {
|
||||
unset( $this->options[ $option_id ] );
|
||||
}
|
||||
|
||||
update_option( 'um_options', $this->options );
|
||||
}
|
||||
@@ -157,4 +158,4 @@ if ( ! class_exists( 'um\core\Options' ) ) {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user