Make WordPress Core

Changeset 54897


Ignore:
Timestamp:
11/29/2022 09:28:01 PM (23 months ago)
Author:
audrasjb
Message:

Coding Standards: Use consistent markup for line break tags on update-core.php.

This changeset replaces <br/> with <br /> on various places, as per WordPress Coding Standards.
See https://developer.wordpress.org/coding-standards/wordpress-coding-standards/html/#self-closing-elements

Follow-up to [54062].

Props rajanpanchal2028, alberuni-azad, sabernhardt.
Fixes #57226.
See #56791.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/update-core.php

    r54839 r54897  
    403403
    404404            if ( $can_set_update_option ) {
    405                 echo '<br>';
     405                echo '<br />';
    406406                printf(
    407407                    '<a href="%s" class="core-auto-update-settings-link core-auto-update-settings-link-disable">%s</a>',
     
    414414
    415415            if ( $can_set_update_option ) {
    416                 echo '<br>';
     416                echo '<br />';
    417417                printf(
    418418                    '<a href="%s" class="core-auto-update-settings-link core-auto-update-settings-link-enable">%s</a>',
     
    536536
    537537        if ( ! $compatible_php && current_user_can( 'update_php' ) ) {
    538             $compat .= '<br>' . __( 'This update does not work with your version of PHP.' ) . '&nbsp;';
     538            $compat .= '<br />' . __( 'This update does not work with your version of PHP.' ) . '&nbsp;';
    539539            $compat .= sprintf(
    540540                /* translators: %s: URL to Update PHP page. */
     
    682682
    683683        if ( ! $compatible_wp && ! $compatible_php ) {
    684             $compat .= '<br>' . __( 'This update does not work with your versions of WordPress and PHP.' ) . '&nbsp;';
     684            $compat .= '<br />' . __( 'This update does not work with your versions of WordPress and PHP.' ) . '&nbsp;';
    685685            if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
    686686                $compat .= sprintf(
     
    716716            }
    717717        } elseif ( ! $compatible_wp ) {
    718             $compat .= '<br>' . __( 'This update does not work with your version of WordPress.' ) . '&nbsp;';
     718            $compat .= '<br />' . __( 'This update does not work with your version of WordPress.' ) . '&nbsp;';
    719719            if ( current_user_can( 'update_core' ) ) {
    720720                $compat .= sprintf(
     
    725725            }
    726726        } elseif ( ! $compatible_php ) {
    727             $compat .= '<br>' . __( 'This update does not work with your version of PHP.' ) . '&nbsp;';
     727            $compat .= '<br />' . __( 'This update does not work with your version of PHP.' ) . '&nbsp;';
    728728            if ( current_user_can( 'update_php' ) ) {
    729729                $compat .= sprintf(
Note: See TracChangeset for help on using the changeset viewer.