[wp-trac] [WordPress Trac] #28986: Define expected hooks in WP_UnitTestCase::$hooks_saved

WordPress Trac noreply at wordpress.org
Tue Jul 22 20:33:40 UTC 2014


#28986: Define expected hooks in WP_UnitTestCase::$hooks_saved
------------------------------+-----------------------------
 Reporter:  danielbachhuber   |       Owner:  wonderboymusic
     Type:  defect (bug)      |      Status:  reopened
 Priority:  normal            |   Milestone:  4.0
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------------
Changes (by TobiasBg):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 This breaks things.

 When `$hooks_saved` is pre-populated (non-empty arrays are true), `if ( !
 self::$hooks_saved ) {` is never true and therefore the hooks are never
 backed-up.

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


More information about the wp-trac mailing list