[wp-trac] [WordPress Trac] #27671: wp_die() handler for admin-post.php

WordPress Trac noreply at wordpress.org
Thu Jun 20 08:37:45 UTC 2019


#27671: wp_die() handler for admin-post.php
-------------------------------------------------+-------------------------
 Reporter:  danielbachhuber                      |       Owner:  whyisjake
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:
Component:  Administration                       |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  good-first-bug has-patch needs-      |     Focuses:
  testing                                        |
-------------------------------------------------+-------------------------

Comment (by foack):

 Following the basic tutorial on
 https://codex.wordpress.org/Plugin_API/Action_Reference/admin_post_(action)
 and replacing the {{{die()}}} in the example with {{{wp_die()}}}, the
 {{{wp_die()}}} function triggers {{{_ajax_wp_die_handler}}} located in
 {{{wp-includes/functions.php}}}.

 I'm new in contributing to WP Core but from my perspective, it would not
 be necessary to extend {{{admin_post.php}}}. If we were to, we'd at least
 need to avoid redeclaring {{{_ajax_wp_die_handler()}}}.

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


More information about the wp-trac mailing list