Skip to content

Commit

Permalink
Add admin-notice new core function wp_admin_notice (fixes bueltge#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreLebedel committed Dec 4, 2023
1 parent f8c4532 commit d124de9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion patterns/admin-notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<?php
printf(
// translators: Leave always a hint for translators to understand the placeholders.
__( 'Define type via parameter (same as CSS classes) with <a href="%s" target="_blank">function add_settings_error()</a>, or use class(es) on a wrapping <code>div</code>.',
__( 'Define type via parameter (same as CSS classes) with function <a href="#" target="_blank"><code>add_settings_error()</code></a>, or use class(es) on a wrapping <code>div</code>.',
'WpAdminStyle' ), 'https://developer.wordpress.org/reference/functions/add_settings_error/'
);
?>
Expand All @@ -18,6 +18,16 @@
);
?>
</p>
<p>
<?php
printf(
// translators: Leave always a hint for translators to understand the placeholders.
__( 'Since WordPress version 6.4, the core includes function <a href="%s" target="_blank"><code>wp_admin_notice()</code></a> to standardize admin notices. See <a href="%s" target="_blank">this changeset on core.trac.wordpress.org</a> for further details.', 'WpAdminStyle' ),
'https://developer.wordpress.org/reference/functions/wp_admin_notice/',
'https://core.trac.wordpress.org/changeset/56408'
);
?>
</p>
<p>
<?php
_e( 'Note: The <code>inline</code> class is only to leave the notices here. On default WordPress will hide them via javascript.', 'WpAdminStyle' );
Expand Down

0 comments on commit d124de9

Please sign in to comment.