WordPress.org

Make WordPress Core

Ticket #43163: 43163.diff

File 43163.diff, 508 bytes (added by audrasjb, 3 years ago)

Add is-dismissible class to "Did you know?" notice

  • src/wp-admin/theme-editor.php

    diff --git a/src/wp-admin/theme-editor.php b/src/wp-admin/theme-editor.php
    index f5b789e..84cf37e 100644
    a b if ( 'POST' === $_SERVER['REQUEST_METHOD'] ) { 
    192192        </div>
    193193<?php endif; ?>
    194194<?php if ( preg_match( '/\.css$/', $file ) ) : ?>
    195         <div id="message" class="notice-info notice">
     195        <div id="message" class="notice-info notice is-dismissible">
    196196                <p><strong><?php _e( 'Did you know?' ); ?></strong></p>
    197197                <p>
    198198                        <?php