Skip to content

Commit 9b75378

Browse files
committed
Remove passing unused arg to rest_post_dispatch filter
1 parent e41ee3a commit 9b75378

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

inc/pantheon-page-cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ protected function setup() {
116116

117117
add_filter( 'nocache_headers', [ $this, 'filter_nocache_headers' ] );
118118
add_filter( 'wp_headers', [ $this, 'filter_wp_headers' ] );
119-
add_filter( 'rest_post_dispatch', [ $this, 'filter_rest_post_dispatch_send_cache_control' ], 10, 2 );
119+
add_filter( 'rest_post_dispatch', [ $this, 'filter_rest_post_dispatch_send_cache_control' ] );
120120

121121
add_action( 'admin_notices', function () {
122122
global $wp_object_cache;

0 commit comments

Comments
 (0)