Changeset 42349 for trunk/src/wp-admin/network/sites.php
- Timestamp:
- 12/01/2017 11:35:31 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/network/sites.php
r42343 r42349 279 279 $msg = ''; 280 280 if ( isset( $_GET['updated'] ) ) { 281 switch ( $_GET['updated'] ) { 281 $action = $_GET['updated']; 282 283 switch ( $action ) { 282 284 case 'all_notspam': 283 285 $msg = __( 'Sites removed from spam.' ); … … 315 317 default: 316 318 /** 317 * Filters a specific, non-default site-updated message in the Network admin.318 * 319 * The dynamic portion of the hook name, `$ _GET['updated']`, refers to the320 * non-defaultsite update action.319 * Filters a specific, non-default, site-updated message in the Network admin. 320 * 321 * The dynamic portion of the hook name, `$action`, refers to the non-default 322 * site update action. 321 323 * 322 324 * @since 3.1.0 … … 324 326 * @param string $msg The update message. Default 'Settings saved'. 325 327 */ 326 $msg = apply_filters( 'network_sites_updated_message_' . $_GET['updated'], __( 'Settings saved.' ) );328 $msg = apply_filters( "network_sites_updated_message_{$action}", __( 'Settings saved.' ) ); 327 329 break; 328 330 }
Note: See TracChangeset
for help on using the changeset viewer.