- Timestamp:
- 08/26/2021 12:57:08 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php
r51568 r51657 2138 2138 public function test_prepare_item_filters_content_when_needed() { 2139 2139 $filter_count = 0; 2140 $filter_content = function() use ( &$filter_count ) {2140 $filter_content = static function() use ( &$filter_count ) { 2141 2141 $filter_count++; 2142 2142 return '<p>Filtered content.</p>'; … … 2174 2174 public function test_prepare_item_skips_content_filter_if_not_needed() { 2175 2175 $filter_count = 0; 2176 $filter_content = function() use ( &$filter_count ) {2176 $filter_content = static function() use ( &$filter_count ) { 2177 2177 $filter_count++; 2178 2178 return '<p>Filtered content.</p>';
Note: See TracChangeset
for help on using the changeset viewer.