We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce14af6 commit ecdeb3dCopy full SHA for ecdeb3d
tests/phpunit/tests/functions/wpGetArchives.php
@@ -210,11 +210,13 @@ public function test_wp_get_archives_post_type() {
210
*/
211
public function test_wp_get_archives_args_filter() {
212
// Test that the filter can modify the limit argument.
213
- $filter_callback = function ( $args ) {
214
- $args['limit'] = 3;
215
- return $args;
216
- };
217
- add_filter( 'wp_get_archives_args', $filter_callback );
+ add_filter(
+ 'wp_get_archives_args',
+ static function ( $args ) {
+ $args['limit'] = 3;
+ return $args;
218
+ }
219
+ );
220
221
$ids = array_slice( array_reverse( self::$post_ids ), 0, 3 );
222
0 commit comments