mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- options optimization;
This commit is contained in:
@@ -7,7 +7,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
if ( ! class_exists( 'Options' ) ) {
|
||||
class Options {
|
||||
|
||||
var $options;
|
||||
var $options = array();
|
||||
|
||||
/**
|
||||
* Access constructor.
|
||||
@@ -66,7 +66,7 @@ if ( ! class_exists( 'Options' ) ) {
|
||||
*
|
||||
* @param $option_id
|
||||
*/
|
||||
function delete( $option_id ) {
|
||||
function remove( $option_id ) {
|
||||
if ( ! empty( $this->options[ $option_id ] ) )
|
||||
unset( $this->options[ $option_id ] );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user