Make WordPress Core


Ignore:
Timestamp:
09/21/2023 06:22:10 PM (18 months ago)
Author:
joedolson
Message:

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.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/functions/wpGetAdminNotice.php

    r56653 r56654  
    44 * Tests for `wp_get_admin_notice()`.
    55 *
    6  * @group admin
     6 * @group functions.php
    77 *
    88 * @covers ::wp_get_admin_notice
    99 */
    10 class Tests_Admin_WpGetAdminNotice extends WP_UnitTestCase {
     10class Tests_Functions_WpGetAdminNotice extends WP_UnitTestCase {
    1111
    1212    /**
Note: See TracChangeset for help on using the changeset viewer.