[wp-trac] [WordPress Trac] #14530: "Cheatin', uh?" is not helpful feedback for users or developers
WordPress Trac
noreply at wordpress.org
Wed Jan 14 22:21:53 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 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:38>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list