Make WordPress Core


Ignore:
Timestamp:
09/14/2023 12:52:45 AM (15 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/privacy-policy-guide.php

    r56559 r56570  
    6161<hr class="wp-header-end">
    6262
    63 <div class="notice notice-error hide-if-js">
    64     <p><?php _e( 'The Privacy Settings require JavaScript.' ); ?></p>
    65 </div>
     63<?php
     64wp_admin_notice(
     65    __( 'The Privacy Settings require JavaScript.' ),
     66    array(
     67        'type'               => 'error',
     68        'additional_classes' => array( 'hide-if-js' ),
     69    )
     70);
     71?>
    6672
    6773<div class="privacy-settings-body hide-if-no-js">
Note: See TracChangeset for help on using the changeset viewer.