[wp-trac] [WordPress Trac] #50366: WordPress rest_api_init action doesn't work in PHPUnit tests

WordPress Trac noreply at wordpress.org
Thu Jun 11 13:37:19 UTC 2020


#50366: WordPress rest_api_init action doesn't work in PHPUnit tests
--------------------------+-----------------------
 Reporter:  skarabeq      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:
Component:  REST API      |     Version:  5.4.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-----------------------

Comment (by skarabeq):

 Replying to [comment:12 swissspidy]:
 > Since [47842] there's a `_doing_it_wrong` call saying "Namespace must
 not start or end with a slash." This will be logged as a `E_USER_NOTICE`
 level message.
 >
 > How is this message not adequate?

 @swissspidy, I have not received the message from this ticket [47842]. I
 have received this one - {{{Unexpected incorrect usage notice for
 register_rest_route}}}. For this message I mean is not very clear, what is
 not correct.

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


More information about the wp-trac mailing list