[wp-trac] [WordPress Trac] #46418: Use wp_die() instead of die() function in wordpress

WordPress Trac noreply at wordpress.org
Tue Mar 5 12:01:39 UTC 2019


#46418: Use wp_die() instead of die() function in wordpress
-------------------------+-----------------------------
 Reporter:  immeet94     |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  trunk
 Severity:  normal       |   Keywords:  has-patch
  Focuses:               |
-------------------------+-----------------------------
 When use the wp_json_encode() function that time you should use wp_die
 function instead of die() function.
 Because wp_die() function do Kill WordPress execution and display HTML
 message with error message.

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


More information about the wp-trac mailing list