Skip to content

Commit 25ce7c3

Browse files
committed
Use consistent page naming
1 parent ca864d9 commit 25ce7c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

admin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ function json_oauth_admin_register() {
3636
'list_users',
3737

3838
// Menu slug
39-
'json_oauth',
39+
'json-oauth',
4040

4141
// Callback
4242
'json_oauth_admin_render'
4343
);
4444
}
4545

4646
function json_oauth_admin_prerender() {
47-
$hook = get_plugin_page_hook( 'json_oauth', 'users.php' );
47+
$hook = get_plugin_page_hook( 'json-oauth', 'users.php' );
4848

4949
add_action( 'load-' . $hook, 'json_oauth_admin_load' );
5050
}
@@ -213,7 +213,7 @@ function json_oauth_admin_edit_page() {
213213
global $title, $parent_file, $submenu_file;
214214
$title = $consumer ? __( 'Edit Consumer' ) : __( 'Add Consumer' );
215215
$parent_file = 'users.php';
216-
$submenu_file = 'json_oauth';
216+
$submenu_file = 'json-oauth';
217217

218218
include( ABSPATH . 'wp-admin/admin-header.php' );
219219
?>

0 commit comments

Comments
 (0)