WordPress.org

Make WordPress Core

Changeset 47528


Ignore:
Timestamp:
03/29/2020 03:44:36 AM (7 months ago)
Author:
SergeyBiryukov
Message:

Site Health: Correct markup in ::get_test_php_extensions() and ::get_test_background_updates() description.

These tests output an unordered list, which doesn't need to be wrapped in a paragraph tag.

Additionally, pass an empty string as an actions parameter in ::get_test_php_default_timezone(), for consistency with other tests.

Props afercia.
See #48948.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r47456 r47528  
    10371037            }
    10381038
    1039             $result['description'] .= sprintf(
    1040                 '<p>%s</p>',
    1041                 $output
    1042             );
     1039            $result['description'] .= $output;
    10431040        }
    10441041
     
    10651062                __( 'PHP default timezone was configured by WordPress on loading. This is necessary for correct calculations of dates and times.' )
    10661063            ),
     1064            'actions'     => '',
    10671065            'test'        => 'php_default_timezone',
    10681066        );
     
    16791677
    16801678        if ( 'good' !== $result['status'] ) {
    1681             $result['description'] .= sprintf(
    1682                 '<p>%s</p>',
    1683                 $output
    1684             );
     1679            $result['description'] .= $output;
    16851680        }
    16861681
Note: See TracChangeset for help on using the changeset viewer.