Make WordPress Core

Opened 4 years ago

Closed 3 years ago

#44496 closed defect (bug) (fixed)

Correct documentation of hook back and restore methods in the main test case

Reported by: Frank Klein Owned by: DrewAPicture
Milestone: 5.1 Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords: has-patch commit
Focuses: docs Cc:


r38571 modified the way that WordPress handles hooks. As a part of this, the $merged_filters global was removed.

The attached patch updates the method documentation of _backup_hooks() and _restore_hooks() inside of WP_UnitTestCase to reflect this change.

Attachments (1)

44496.patch (1.1 KB) - added by Frank Klein 4 years ago.

Download all attachments as: .zip

Change History (4)

@Frank Klein
4 years ago

#1 @netweb
4 years ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 5.0

#2 @jorbin
3 years ago

  • Milestone changed from 5.0 to 5.1

#3 @DrewAPicture
3 years ago

  • Owner set to DrewAPicture
  • Resolution set to fixed
  • Status changed from new to closed

In 44327:

Docs: Remove references to the now-defunct $merged_filters global from two method DocBlocks in WP_UnitTestCase.

The $merged_filters global was removed in [38571].

Props frank-klein.
Fixes #44496.

Note: See TracTickets for help on using tickets.