[wp-trac] [WordPress Trac] #33934: create a SUBMITTING_POST constant

WordPress Trac noreply at wordpress.org
Fri Aug 5 21:15:36 UTC 2016


#33934: create a SUBMITTING_POST constant
-------------------------+-----------------------------
 Reporter:  charlyox     |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Query        |     Version:  4.3
 Severity:  trivial      |  Resolution:  wontfix
 Keywords:               |     Focuses:  administration
-------------------------+-----------------------------

Comment (by librapan):

 Replying to [comment:2 obenland]:
 > Hi charlyox, welcome to WordPress Trac!
 >
 > I would suggest hooking into `admin_init` early and checking whether
 admin-post is requested to check for that scenario. It's unlikely that a
 new constant would be introduced here.

 I had the same scenario, and I ended up with hook redirect to `admin_menu`
 instead of `admin_init`. It seems working, however just feel confused as
 `admin_init` was encouraged by
 https://codex.wordpress.org/Plugin_API/Action_Reference/admin_init

 >I would suggest hooking into admin_init early and checking whether admin-
 post is requested to check for that scenario.
 I'm curious about your solution, so just wondering is there any WordPress
 way to check whether admin-post is requested? Thanks for any response!

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


More information about the wp-trac mailing list