Skip to content

Commit f2390d7

Browse files
committed
Network: Add message notifying user of successful settings change.
When altering the Network Admin Settings there was no message letting the user know the action was successful. Now the default WordPress updated box shows with a message telling the user the updates were successful. Closes Automattic#270
1 parent 57e384a commit f2390d7

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

class.jetpack-network-sites-list-table.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ function column_cb($item) {
113113
public function process_bulk_action() {
114114
if( !isset( $_POST['bulk'] ) || empty ( $_POST['bulk'] ) )
115115
return; // Thou shall not pass! There is nothing to do
116-
116+
117+
117118
$jpms = Jetpack_Network::init();
118119

119120
$action = $this->current_action();

views/admin/network-settings.php

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22
extract( $data );
3+
4+
5+
if( isset( $_GET['updated'] ) && 'true' == $_GET['updated'] ) {
6+
?>
7+
8+
<div class="updated">Jetpack Network Settings Updated!</div>
9+
10+
<?php
11+
}
312
?>
413

514
<div class="wrap">

0 commit comments

Comments
 (0)