Skip to content

Commit fd031fa

Browse files
committed
Show message when application is deleted
1 parent 50611d0 commit fd031fa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/class-wp-rest-oauth1-admin.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ class="add-new-h2"><?php echo esc_html_x( 'Add New', 'application', 'rest_oauth1
108108
endif;
109109
?>
110110
</h2>
111+
<?php
112+
if ( ! empty( $_GET['deleted'] ) ) {
113+
echo '<div id="message" class="updated"><p>' . esc_html__( 'Deleted application.', 'rest_oauth1' ) . '</p></div>';
114+
}
115+
?>
111116

112117
<?php $wp_list_table->views(); ?>
113118

@@ -368,7 +373,7 @@ public static function handle_delete() {
368373
return;
369374
}
370375

371-
wp_redirect( self::get_url() );
376+
wp_redirect( self::get_url( 'deleted=1' ) );
372377
exit;
373378
}
374379
}

0 commit comments

Comments
 (0)