Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multisite: Use helper functions for admin notices. #4895

Conversation

costdev
Copy link
Contributor

@costdev costdev commented Jul 24, 2023

This implements the new wp_admin_notice() and wp_get_admin_notice() functions in multisite administration pages.

This PR is blocked and CI failures are expected until #4119 is committed.

Trac ticket: https://core.trac.wordpress.org/ticket/57791

@costdev costdev marked this pull request as ready for review July 24, 2023 16:56
$notice_message = '<strong>' . __( 'Caution:' ) . '</strong> ';
$notice_args = array(
'type' => 'warning',
'additional_classes' => 'inline',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function doesn't accept additional_classes as a string. I missed this in the initial commit, but am committing a follow-up.

@joedolson joedolson closed this Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants