Skip to content

Commit

Permalink
Wrap notice content for flex alignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Feb 4, 2025
1 parent be1436a commit 9a52a18
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/wp-includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -9083,8 +9083,9 @@ function wp_get_admin_notice( $message, $args = array() ) {
* @param string $url URL pointing to the image.
* @param array $args The arguments for the admin notice.
*/
$url = apply_filters( 'wp_get_admin_notice_icon', $url, $args );
$img = '<img src="' . esc_url( $url ) . '" width="24" height="24" class="wp-notice-icon" alt="' . esc_attr( $label ) . '">';
$url = apply_filters( 'wp_get_admin_notice_icon', $url, $args );
$img = '<img src="' . esc_url( $url ) . '" width="24" height="24" class="wp-notice-icon" alt="' . esc_attr( $label ) . '">';
$message = '<div class="notice-wrap">' . $message . '</div>';
}

$markup = sprintf( '<div %1$sclass="%2$s"%3$s>%4$s%5$s</div>', $id, $classes, $attributes, $img, $message );
Expand Down

0 comments on commit 9a52a18

Please sign in to comment.