From 31ff4bd7d4a82f708979c838b5f0c973d278c8df Mon Sep 17 00:00:00 2001 From: Jay Wood Date: Fri, 30 Sep 2016 10:01:36 -0400 Subject: [PATCH] Fix options page assignments, ref #45 --- includes/admin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/admin.php b/includes/admin.php index cd63179..a696c63 100644 --- a/includes/admin.php +++ b/includes/admin.php @@ -54,7 +54,7 @@ class CWV2_Admin { add_action( 'manage_posts_custom_column', array( $this, 'set_col_data' ) ); add_action( 'manage_pages_custom_column', array( $this, 'set_col_data' ) ); - add_action( 'admin_menu', array( $this, 'add_menu' ) ); + add_action( 'admin_menu', array( $this, 'admin_menu' ) ); } /** @@ -64,7 +64,7 @@ class CWV2_Admin { * @since 3.7 */ public function admin_menu() { - $this->options_page = add_options_page( __( 'Content Warning Options', 'content-warning-v2' ), __( 'CWV2 Options', 'content-warning-v2' ), 'manage_options', array( $this, 'render_settings' ) ); + $this->options_page = add_options_page( __( 'Content Warning Options', 'content-warning-v2' ), __( 'CWV2 Options', 'content-warning-v2' ), 'manage_options', 'cwv2-options', array( $this, 'render_settings_page' ) ); // Setup sections etc... foreach ( $this->get_settings_config() as $section ) {