fix initialization bug
This commit is contained in:
parent
83028e2c18
commit
2839f27996
@ -51,8 +51,7 @@ class WhatDidTheySayAdmin {
|
|||||||
|
|
||||||
$options = get_option('what-did-they-say-options');
|
$options = get_option('what-did-they-say-options');
|
||||||
if (!is_array($options)) {
|
if (!is_array($options)) {
|
||||||
$options = $this->default_options;
|
$this->install();
|
||||||
update_option('what-did-they-say-options', $options);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
add_action('admin_menu', array(&$this, 'admin_menu'));
|
add_action('admin_menu', array(&$this, 'admin_menu'));
|
||||||
|
Loading…
Reference in New Issue
Block a user