rm unused hook mv options page call

This commit is contained in:
Lem Smyth 2022-02-12 13:55:16 -06:00
parent 06fed9faf9
commit 87a0c132fa

View file

@ -25,7 +25,7 @@ class LBRY_Admin
*/
public function create_options_page()
{
$hook_suffix = add_menu_page(
add_menu_page(
__('LBRYPress Settings', 'lbrypress'),
__('LBRYPress', 'lbrypress'),
'manage_options',
@ -50,6 +50,17 @@ class LBRY_Admin
add_action( 'admin_enqueue_scripts', 'load_admin_stylesheet' );
}
/**
* Returns the Options Page HTML for the plugin
*/
public function options_page_html()
{
// Set class properties to be referenced in callbacks
$this->options = get_option( LBRY_SETTINGS );
$this->options_speech = get_option( LBRY_SPEECH_SETTINGS );
require_once( LBRY_ABSPATH . 'templates/options-page.php' );
}
/**
* Registers all settings for the plugin
*/
@ -146,17 +157,6 @@ class LBRY_Admin
);
}
/**
* Returns the Options Page HTML for the plugin
*/
public function options_page_html()
{
// Set class property to be referenced in callbacks
$this->options = get_option(LBRY_SETTINGS);
require_once( LBRY_ABSPATH . 'templates/options-page.php' );
}
/**
* Sanitizes setting input
* // COMBAK Potentially sanitize more
@ -341,7 +341,6 @@ class LBRY_Admin
);
}
/**
* Handles new channel form submission
*/