From f35484d13e555e42b0ea9f4b35a9eafa1691e381 Mon Sep 17 00:00:00 2001 From: Lem Smyth Date: Sat, 12 Feb 2022 13:30:08 -0600 Subject: [PATCH] rm unused hook mv options page call --- classes/LBRY_Admin.php | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/classes/LBRY_Admin.php b/classes/LBRY_Admin.php index 91adc83..3952e3b 100644 --- a/classes/LBRY_Admin.php +++ b/classes/LBRY_Admin.php @@ -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 */