Fix options page assignments, ref #45

This commit is contained in:
Jay Wood
2016-09-30 10:01:36 -04:00
parent 81f521cb6e
commit 31ff4bd7d4

View File

@ -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 ) {