[wp-trac] [WordPress Trac] #14530: Cheating huh?
WordPress Trac
noreply at wordpress.org
Sat Jul 27 18:49:36 UTC 2013
#14530: Cheating huh?
-----------------------------+------------------------------
Reporter: shidouhikari | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Role/Capability | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-----------------------------+------------------------------
Comment (by tzkmx):
Replying to [comment:15 tzkmx]:
> Same user, same permissions. The only bit I found wp_die function in
customize.php is this:
> {{{
> if ( ! current_user_can( 'edit_theme_options' ) )
> wp_die( __( 'Cheatin’ uh?' ) );
> }}}
My bad, we were creating the stylesheets and template names were correct,
but the child themes we couldn't activate, were those we haven't activated
for the network yet. And we were seeing anyway those themes listed on
every site, because [http://wordpress.org/support/topic/useful-but-
all_the_themes-function-is-misleading a function on Hyper Admins plugin
listed it].
I'd like to propose a patch to split the error message on permission, not
only on edit_theme_options capability, but checking if the theme is
enabled and giving the user the advice to enable for the site first.
However I don't know which function could be used, if I discover a way to
accomplish this, I'd be more helpful on this thread than just complaining
about an uninformative error message.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14530#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list