- options optimization;

This commit is contained in:
nikitozzzzzzz
2017-12-12 11:13:02 +02:00
parent 51acdc5aee
commit 96c1aaf05a
16 changed files with 171 additions and 188 deletions
+2 -2
View File
@@ -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 ] );