Make WordPress Core


Ignore:
Timestamp:
09/14/2023 12:52:45 AM (7 months ago)
Author:
joedolson
Message:

Administration: Use wp_admin_notice() in /wp-admin/.

Add usages of wp_admin_notice() and wp_get_admin_notice() on .notice-[type] in the root level of /wp-admin/. Ongoing task to implement new function across core.

Props costdev, joedolson.
See #57791.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/theme-install.php

    r55412 r56570  
    319319
    320320    <# if ( data.installed ) { #>
    321         <div class="notice notice-success notice-alt"><p><?php _ex( 'Installed', 'theme' ); ?></p></div>
     321        <?php
     322        wp_admin_notice(
     323            _x( 'Installed', 'theme' ),
     324            array(
     325                'type'               => 'success',
     326                'additional_classes' => array( 'notice-alt' ),
     327            )
     328        );
     329        ?>
    322330    <# } #>
    323331
Note: See TracChangeset for help on using the changeset viewer.