Make WordPress Core


Ignore:
Timestamp:
08/17/2023 09:01:17 PM (3 years ago)
Author:
joedolson
Message:

Administration: Apply admin notice functions in multisite.

Use wp_get_admin_notice and wp_admin_notice to handle multisite settings notices.

Props costdev.
See #57791.

File:
1 edited

Legend:

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

    r55971 r56409  
    860860                echo apply_filters( 'theme_auto_update_setting_html', $html, $stylesheet, $theme );
    861861
    862                 echo '<div class="notice notice-error notice-alt inline hidden"><p></p></div>';
     862                wp_admin_notice(
     863                        '',
     864                        array(
     865                                'type'               => 'error',
     866                                'additional_classes' => array( 'notice-alt', 'inline', 'hidden' ),
     867                        )
     868                );
    863869        }
    864870
Note: See TracChangeset for help on using the changeset viewer.