Browse files

moved to using add_theme_page() per theme guidelines

Signed-off-by: Philip M. Hofer (Frumph) <>
  • Loading branch information...
Philip M. Hofer (Frumph)
Philip M. Hofer (Frumph) committed Feb 13, 2011
1 parent 1441cb9 commit 4a0599f29f783ae125810e46dabe758e630c77eb
Showing with 3 additions and 1 deletion.
  1. +1 −0 changelog.txt
  2. +2 −1 comicpress-admin.php
@@ -16,6 +16,7 @@ added s at the end of comments for multiple comics in the comments widget
added setup_postdata in the comments widget to properly access data
if disable_blog_frontpage is enabled, allow comments to be displayed on comic posts on home page if comic post is shown
wp-pagenavi.php internalization fix w/removal of usage of an option
+moved to using add_theme_page()
$is_comic needed to be set in the archive.php before hand, was giving notice
@@ -4,7 +4,8 @@
function comicpress_options_setup() {
$options_title = __('ComicPress Options','comicpress');
- $pagehook = add_submenu_page('themes.php', $options_title, $options_title, 'edit_themes', 'comicpress-options', 'comicpress_admin_options');
+ $admin_title = __('ComicPress Options', 'comicpress');
+ $pagehook = add_theme_page($admin_title, $admin_title, 'edit_theme_options', 'comicpress-options', 'comicpress_admin_options');
add_action('admin_head-' . $pagehook, 'comicpress_admin_page_head');
add_action('admin_print_scripts-' . $pagehook, 'comicpress_admin_print_scripts');
add_action('admin_print_styles-' . $pagehook, 'comicpress_admin_print_styles');

0 comments on commit 4a0599f

Please sign in to comment.