[theme-reviewers] [WordPress Themes] Station - feedback

Simon Prosser pross at pross.org.uk
Thu Aug 5 21:11:52 UTC 2010


On Thursday 05 August 2010 21:34:30 PageLines wrote:
> How do I get rid of has_cap error. I can't find it in the project folder
> for my template/theme files? It's really puzzling me. I've heard it's
> related to plug-ins but I've deleted all plug-ins and deleted every
> reference to the only plug-in that we have hardcoded into the theme.
It can be either a plugin or a theme that is trying to add a page or sub-page 
to the admin section using the old syntax, or capabilities...

for example (the right method):
add_theme_page($themename." Options", "".$themename." Options", 'edit_themes', 
basename(__FILE__), 'mytheme_admin');

And the wrong:
add_theme_page($themename." Options", "".$themename." Options", 8, 
basename(__FILE__), 'mytheme_admin');

-- 
MyBlog : http://www.pross.org.uk/
Plugins : http://www.pross.org.uk/plugins/
Themes: http://wordpress.org/extend/themes/profile/pross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20100805/5511304d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 230 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20100805/5511304d/attachment-0001.pgp>


More information about the theme-reviewers mailing list