mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 23:27:04 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@56570 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -177,9 +177,15 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
|
||||
<hr class="wp-header-end">
|
||||
|
||||
<div class="notice notice-error hide-if-js">
|
||||
<p><?php _e( 'The Privacy Settings require JavaScript.' ); ?></p>
|
||||
</div>
|
||||
<?php
|
||||
wp_admin_notice(
|
||||
__( 'The Privacy Settings require JavaScript.' ),
|
||||
array(
|
||||
'type' => 'error',
|
||||
'additional_classes' => array( 'hide-if-js' ),
|
||||
)
|
||||
);
|
||||
?>
|
||||
|
||||
<div class="privacy-settings-body hide-if-no-js">
|
||||
<h2><?php _e( 'Privacy Settings' ); ?></h2>
|
||||
|
||||
Reference in New Issue
Block a user