Permalink
Browse files

Move "Developer" link under "Tools" menu because it's actually a tool…

…, not a setting

Closes #13
  • Loading branch information...
1 parent 0bdb64c commit bcb5646ca1832b42a87f0805f564e52cffa9d75e @joshbetz joshbetz committed Aug 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 developer.php
View
@@ -169,7 +169,7 @@ public function admin_init() {
}
public function register_settings_page() {
- add_options_page( esc_html__( 'Automattic Developer Helper', 'a8c-developer' ), esc_html__( 'Developer', 'a8c-developer' ), 'manage_options', self::PAGE_SLUG, array( $this, 'settings_page' ) );
+ add_management_page( esc_html__( 'Automattic Developer Helper', 'a8c-developer' ), esc_html__( 'Developer', 'a8c-developer' ), 'manage_options', self::PAGE_SLUG, array( $this, 'settings_page' ) );
}
public function add_node_to_admin_bar( $wp_admin_bar ) {
@@ -185,7 +185,7 @@ public function add_node_to_admin_bar( $wp_admin_bar ) {
}
public function load_settings_page_script_and_style( $hook_suffix ) {
- if ( 'settings_page_' . self::PAGE_SLUG != $hook_suffix )
+ if ( 'tools_page_' . self::PAGE_SLUG != $hook_suffix )
return;
wp_enqueue_script( 'a8c-developer' );

0 comments on commit bcb5646

Please sign in to comment.