[wp-trac] [WordPress Trac] #30798: Ideas for improvements to to wp_die() usages

WordPress Trac noreply at wordpress.org
Sat Dec 20 19:34:17 UTC 2014


#30798: Ideas for improvements to to wp_die() usages
-----------------------------+-----------------------------
 Reporter:  johnjamesjacoby  |      Owner:
     Type:  enhancement      |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:
 Severity:  normal           |   Keywords:  2nd-opinion
  Focuses:                   |
-----------------------------+-----------------------------
 When a visitor to or a user of a WordPress powered site encounters a
 `wp_die()` message (traditionally handled by the
 `_default_wp_die_handler()` function) it is (likely intentionally) a very
 jarring experience. Having `wp_die()` produce human readable results is
 the least amount of assistance we could possibly provide when a not-
 completely-unanticipated event occurs, and I think in many instances we
 can provide a more positive experience.

 Of our current 230 approximate usages, 33 appear to be `Cheatin’; uh?`'s
 which, while cute and full of personality, aren't particularly helpful to
 the innocent user who encounters them, nor are they stern enough to
 deflect any guilty parties from continuing to seek out unauthorized
 access.

 The remaining 200 approximate usages typically drop an authorized user
 into a limbo state where their only option is going back in their browser
 history and hope their drafted content isn't bungled or lost. Maybe
 tucking some of these requests behind ajax actions would reduce that
 redirection? Or maybe enabling themes to have a template hierarchy for
 handling various error messages would be more user friendly?

 I don't have a real improvement plan, and don't feel wholly qualified to
 solve this issue for the entire WordPress community, rather I'm hoping
 this ticket can foster some discussion about improving this trusted,
 though somewhat antiquated, piece of WordPress core.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30798>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list