File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -239,6 +239,13 @@ public static function render_edit_page() {
239
239
if ( ! empty ( $ _POST ['submit ' ] ) ) {
240
240
$ messages = self ::handle_edit_submit ( $ consumer );
241
241
}
242
+ if ( ! empty ( $ _GET ['did_action ' ] ) ) {
243
+ if ( $ _GET ['did_action ' ] === 'edit ' ) {
244
+ $ messages [] = __ ( 'Updated application. ' , 'rest_oauth1 ' );
245
+ } else {
246
+ $ messages [] = __ ( 'Successfully created application. ' , 'rest_oauth1 ' );
247
+ }
248
+ }
242
249
243
250
$ data = array ();
244
251
@@ -268,7 +275,7 @@ public static function render_edit_page() {
268
275
<?php
269
276
if ( ! empty ( $ messages ) ) {
270
277
foreach ( $ messages as $ msg )
271
- echo '<div id="message" class="updated"><p> ' . $ msg . '</p></div> ' ;
278
+ echo '<div id="message" class="updated"><p> ' . esc_html ( $ msg ) . '</p></div> ' ;
272
279
}
273
280
?>
274
281
You can’t perform that action at this time.
0 commit comments