Make WordPress Core


Ignore:
Timestamp:
09/14/2023 01:11:29 AM (9 months ago)
Author:
joedolson
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugins-list-table.php

    r56549 r56571  
    12441244                    echo apply_filters( 'plugin_auto_update_setting_html', $html, $plugin_file, $plugin_data );
    12451245
    1246                     echo '<div class="notice notice-error notice-alt inline hidden"><p></p></div>';
     1246                    wp_admin_notice(
     1247                        '',
     1248                        array(
     1249                            'type'               => 'error',
     1250                            'additional_classes' => array( 'notice-alt', 'inline', 'hidden' ),
     1251                        )
     1252                    );
     1253
    12471254                    echo '</td>';
    12481255
Note: See TracChangeset for help on using the changeset viewer.