Make WordPress Core


Ignore:
Timestamp:
08/17/2023 09:01:17 PM (18 months ago)
Author:
joedolson
Message:

Administration: Apply admin notice functions in multisite.

Use wp_get_admin_notice and wp_admin_notice to handle multisite settings notices.

Props costdev.
See #57791.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/sites.php

    r55876 r56409  
    359359
    360360    if ( ! empty( $msg ) ) {
    361         $msg = '<div id="message" class="notice notice-success is-dismissible"><p>' . $msg . '</p></div>';
     361        $msg = wp_get_admin_notice(
     362            $msg,
     363            array(
     364                'type'        => 'success',
     365                'dismissible' => true,
     366                'id'          => 'message',
     367            )
     368        );
    362369    }
    363370}
Note: See TracChangeset for help on using the changeset viewer.