mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-26 23:44:31 +00:00
Administration: Use wp_admin_notice() in /wp-admin/includes.
Add usages of `wp_admin_notice()` and `wp_get_admin_notice()` on `.notice-[type]` in the root level of `/wp-admin/includes`. Ongoing task to implement new function across core. Props costdev, joedolson. See #57791. git-svn-id: https://develop.svn.wordpress.org/trunk@56571 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1243,7 +1243,14 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||
*/
|
||||
echo apply_filters( 'plugin_auto_update_setting_html', $html, $plugin_file, $plugin_data );
|
||||
|
||||
echo '<div class="notice notice-error notice-alt inline hidden"><p></p></div>';
|
||||
wp_admin_notice(
|
||||
'',
|
||||
array(
|
||||
'type' => 'error',
|
||||
'additional_classes' => array( 'notice-alt', 'inline', 'hidden' ),
|
||||
)
|
||||
);
|
||||
|
||||
echo '</td>';
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user