Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add_theme_page() Theme Check error #475

Closed
galengidman opened this issue Sep 3, 2015 · 3 comments
Closed

add_theme_page() Theme Check error #475

galengidman opened this issue Sep 3, 2015 · 3 comments

Comments

@galengidman
Copy link

When running Theme Check on a theme using version 2.5.2, I get the following error...

REQUIRED: tgm-plugin-activation/class-tgm-plugin-activation.php. Themes should use add_theme_page() for adding admin pages.

`Line 646: $this->page_hook = call_user_func( 'add_{$type}_page', $args['parent_slug'], $args['page_title'], $args['menu_t ...

Since the wordpress.org uploader checks the theme before allowing an upload, this makes it so that I cannot even upload my theme. Any fixes for this coming?

@Otto42
Copy link

Otto42 commented Nov 11, 2015

This is a fork that passes theme-check and removes the undesirable ability to add arbitrary admin menus.

https://github.com/Otto42/TGM-Plugin-Activation

@someden
Copy link
Contributor

someden commented Jan 22, 2016

I have this error too:
REQUIRED: plugins/tgm-plugin-activation/class-tgm-plugin-activation.php. Themes should use add_theme_page() for adding admin pages.
Line 624: $this->page_hook = call_user_func( 'add_submenu_page', $args['parent_slug'], $args['page_title'], $args['menu_t

@jrfnl
Copy link
Contributor

jrfnl commented Feb 24, 2016

Closing as the Custom TGMPA Generator, which is now available on the website, fixes this.

@jrfnl jrfnl closed this as completed Feb 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants