Skip to content

Commit 257be95

Browse files
committed
Change the name of the action to 'purge_current_page' for front-end purging request
1 parent a270388 commit 257be95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

admin/class-nginx-helper-admin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ public function purge_all() {
688688
$current_url = esc_url_raw( user_trailingslashit( home_url( $wp->request ) ) );
689689

690690
if ( ! is_admin() ) {
691-
$action = 'purge_single_page';
691+
$action = 'purge_current_page';
692692
$redirect_url = $current_url;
693693
} else {
694694
$redirect_url = add_query_arg( array( 'nginx_helper_action' => 'done' ) );
@@ -698,7 +698,7 @@ public function purge_all() {
698698
case 'purge':
699699
$nginx_purger->purge_all();
700700
break;
701-
case 'purge_single_page':
701+
case 'purge_current_page':
702702
$nginx_purger->purge_url( $current_url );
703703
break;
704704
}

0 commit comments

Comments
 (0)