Make WordPress Core


Ignore:
Timestamp:
09/17/2023 03:31:32 PM (3 years ago)
Author:
joedolson
Message:

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

Add additional usage of wp_admin_notice() in wp-admin/ on .error and miscellaneous usages previously overlooked.

Follow up to [56408], [56409], [56410], [56518], [56570], [56571], [56572], [56573], [56576], [56589], [56590], [56597], [56599].

Props costdev, joedolson.
See #57791.

File:
1 edited

Legend:

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

    r56570 r56600  
    184184        <hr class="wp-header-end">
    185185
    186         <div class="error hide-if-js">
    187                 <p><?php _e( 'The Theme Installer screen requires JavaScript.' ); ?></p>
    188         </div>
     186        <?php
     187        wp_admin_notice(
     188                __( 'The Theme Installer screen requires JavaScript.' ),
     189                array(
     190                        'additional_classes' => array( 'error', 'hide-if-js' ),
     191                )
     192        );
     193        ?>
    189194
    190195        <div class="upload-theme">
Note: See TracChangeset for help on using the changeset viewer.