mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Login and Registration: Improve HTML for errors and notices.
Improve markup on Login and Registration errors. Use list markup for multiple issues, paragraph when only one to reduce semantic burden in the most common case. Normalize classes and markup for wrapper using `wp_admin_notice()` and `wp_get_admin_notice()` functions. Move definition of those functions from `wp-admin\includes\misc.php` to `wp-includes\functions.php`. Move tests to functions group. Props extendwings, sabernhardt, afercia, lukecavanagh, rianrietveld, oglekler, sergeybiryukov, costdev, joedolson. Fixes #30685. git-svn-id: https://develop.svn.wordpress.org/trunk@56654 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
/**
|
||||
* Tests for `wp_admin_notice()`.
|
||||
*
|
||||
* @group admin
|
||||
* @group functions.php
|
||||
*
|
||||
* @covers ::wp_admin_notice
|
||||
*/
|
||||
class Tests_Admin_WpAdminNotice extends WP_UnitTestCase {
|
||||
class Tests_Functions_WpAdminNotice extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* Tests that `wp_admin_notice()` outputs the expected admin notice markup.
|
||||
@@ -3,11 +3,11 @@
|
||||
/**
|
||||
* Tests for `wp_get_admin_notice()`.
|
||||
*
|
||||
* @group admin
|
||||
* @group functions.php
|
||||
*
|
||||
* @covers ::wp_get_admin_notice
|
||||
*/
|
||||
class Tests_Admin_WpGetAdminNotice extends WP_UnitTestCase {
|
||||
class Tests_Functions_WpGetAdminNotice extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* Tests that `wp_get_admin_notice()` returns the expected admin notice markup.
|
||||
Reference in New Issue
Block a user