Make WordPress Core

Changeset 56601

Timestamp:
09/17/2023 07:10:58 PM (10 months ago)
Author:
joedolson
Message:

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

Add additional usage of wp_admin_notice() in wp-admin/network/ where previously overlooked.

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

Props costdev, joedolson.
See #57791.

File:
1 edited

Legend:

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

    r56515 r56601  
    136136                <?php if ( 1 === $themes_to_delete ) : ?>
    137137                    <h1><?php _e( 'Delete Theme' ); ?></h1>
    138                     <div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'This theme may be active on other sites in the network.' ); ?></p></div>
     138                    <?php
     139                    wp_admin_notice(
     140                        '<strong>' . __( 'Caution:' ) . '</strong> ' . __( 'This theme may be active on other sites in the network.' ),
     141                        array(
     142                            'additional_classes' => array( 'error' ),
     143                        )
     144                    );
     145                    ?>
    139146                    <p><?php _e( 'You are about to remove the following theme:' ); ?></p>
    140147                <?php else : ?>
    141148                    <h1><?php _e( 'Delete Themes' ); ?></h1>
    142                     <div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'These themes may be active on other sites in the network.' ); ?></p></div>
     149                    <?php
     150                    wp_admin_notice(
     151                        '<strong>' . __( 'Caution:' ) . '</strong> ' . __( 'These themes may be active on other sites in the network.' ),
     152                        array(
     153                            'additional_classes' => array( 'error' ),
     154                        )
     155                    );
     156                    ?>
    143157                    <p><?php _e( 'You are about to remove the following themes:' ); ?></p>
    144158                <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.