Make WordPress Core


Ignore:
Timestamp:
09/14/2023 02:13:42 AM (8 months ago)
Author:
joedolson
Message:

Administration: Use wp_admin_notice() for .updated.

Add usages of wp_admin_notice() and wp_get_admin_notice() on .updated in the root level of /wp-admin/. Ongoing task to implement new function across core.

Props costdev, joedolson.
See #57791.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-comments.php

    r56549 r56573  
    412412        }
    413413
    414         printf(
    415             '<div id="moderated" class="updated notice is-dismissible"><p>%s</p></div>',
    416             implode( "<br />\n", $messages )
     414        wp_admin(
     415            implode( "<br />\n", $messages ),
     416            array(
     417                'id'                 => 'moderated',
     418                'additional_classes' => array( 'updated' ),
     419                'dismissible'        => true,
     420            )
    417421        );
    418422    }
Note: See TracChangeset for help on using the changeset viewer.