[wp-trac] [WordPress Trac] #33752: Allow plugin admin page to skip including admin-footer.php

WordPress Trac noreply at wordpress.org
Sun Sep 6 01:40:27 UTC 2015


#33752: Allow plugin admin page to skip including admin-footer.php
-------------------------+------------------------------
 Reporter:  extendwings  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Plugins      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  administration
-------------------------+------------------------------
Changes (by extendwings):

 * keywords:  reporter-feedback =>


Comment:

 Replying to [comment:1 johnbillion]:
 > Thanks for the ticket, extendwings.
 >
 > Can you provide some more information about why this is useful? How are
 your unit tests running and what are they doing that means that the admin
 footer causes problems?

 In [https://github.com/shield-9/two-factor-phone/blob/master/class.two-
 factor-phone.php#L361 my plugin], I'm using `noheader` (url query) and
 `exit` to output XML data.
 But in [https://github.com/shield-9/two-factor-
 phone/blob/master/tests/phpunit/tests/class.two-factor-phone.php#L329 unit
 test], `exit` aborts PHPUnit, unexpectedly.

 With `nofooter`, I don't need to use `exit` and it is easy to use PHPUnit.

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


More information about the wp-trac mailing list