[wp-trac] [WordPress Trac] #14530: "Cheatin', uh?" is not helpful feedback for users or developers

WordPress Trac noreply at wordpress.org
Wed Jan 14 23:55:54 UTC 2015


#14530: "Cheatin', uh?" is not helpful feedback for users or developers
-----------------------------+-----------------------
 Reporter:  shidouhikari     |       Owner:
     Type:  enhancement      |      Status:  reopened
 Priority:  normal           |   Milestone:  4.2
Component:  Role/Capability  |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:  ui
-----------------------------+-----------------------

Comment (by guidod):

 The usefulness of a better error message is not just for developers, it's
 for end users as well. For example, a suscriber or editor that has a
 permission removed while he is browsing the admin panel would now get
 "Cheating, huh?" instead of something helpful like "You don't have
 permission to access this page, perhaps your permissions have changed?".

 (And about the stuffy corporate application comment, WordPress IS used in
 corporate contexts).

 Replying to [comment:38 jorbin]:
 > "Cheatin', uh?" to me, is a core part of the flavor of WordPress.  I
 wouldn't want to lose it and become a stuffy corporate application.  I do
 think that there is a useful point that we can make this experience better
 for developers though, so I think we should create a standard filter and
 pass in the apporiate things so that a message like the one eric is
 proposing is possible.  Essentially, something like this:
 >
 > {{{
 > $user = wp_get_current_user();
 > $message = apply_filter( 'no_go_message', 'Cheatin’ uh?', $user,
 $failed_cap, __FILE__ );
 > wp_die( $message, 403 );
 > }}}
 >
 > Then, much like we have the debug bar plugin, someone could create a
 debug access plugin that turned the message into one that works for
 developing while not changing the flavor of WordPress.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/14530#comment:40>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list