- removed some deprecated variables;

- changed the structure of the menu item's custom fields;
This commit is contained in:
nikitozzzzzzz
2018-09-17 08:29:33 +03:00
parent e807082059
commit fc298c53b7
8 changed files with 179 additions and 169 deletions
+4 -24
View File
@@ -1,6 +1,4 @@
<?php
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) exit;
<?php if ( ! defined( 'ABSPATH' ) ) exit;
if ( ! class_exists( 'UM_Functions' ) ) {
@@ -11,23 +9,10 @@ if ( ! class_exists( 'UM_Functions' ) ) {
class UM_Functions {
/**
* @var
*/
var $options;
/**
* @var array variable for Flags
*/
var $screenload_flags;
/**
* UM_Functions constructor.
*/
function __construct() {
$this->init_variables();
}
@@ -91,14 +76,6 @@ if ( ! class_exists( 'UM_Functions' ) ) {
}
/**
* Set variables
*/
function init_variables() {
$this->options = get_option( 'um_options' );
}
/**
* Help Tip displaying
*
@@ -344,6 +321,9 @@ if ( ! class_exists( 'UM_Functions' ) ) {
}
/**
* @return mixed|void
*/
function cpt_list() {
/**
* UM hook