Make WordPress Core

Changeset 54062


Ignore:
Timestamp:
09/02/2022 06:49:17 AM (21 months ago)
Author:
audrasjb
Message:

Coding Standards: Use a consistent markup for line break tags across Core.

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

Props haritpanchal, costdev, audrasjb.
Fixes #56457.

Location:
trunk/src
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-comments.php

    r53450 r54062  
    346346        }
    347347
    348         echo '<div id="moderated" class="updated notice is-dismissible"><p>' . implode( "<br/>\n", $messages ) . '</p></div>';
     348        echo '<div id="moderated" class="updated notice is-dismissible"><p>' . implode( "<br />\n", $messages ) . '</p></div>';
    349349    }
    350350}
  • trunk/src/wp-admin/includes/class-custom-background.php

    r53643 r54062  
    307307<form method="post">
    308308            <?php wp_nonce_field( 'custom-background-remove', '_wpnonce-custom-background-remove' ); ?>
    309             <?php submit_button( __( 'Remove Background Image' ), '', 'remove-background', false ); ?><br/>
     309            <?php submit_button( __( 'Remove Background Image' ), '', 'remove-background', false ); ?><br />
    310310            <?php _e( 'This will remove the background image. You will not be able to restore any customizations.' ); ?>
    311311</form>
     
    321321<form method="post">
    322322            <?php wp_nonce_field( 'custom-background-reset', '_wpnonce-custom-background-reset' ); ?>
    323             <?php submit_button( __( 'Restore Original Image' ), '', 'reset-background', false ); ?><br/>
     323            <?php submit_button( __( 'Restore Original Image' ), '', 'reset-background', false ); ?><br />
    324324            <?php _e( 'This will restore the original background image. You will not be able to restore any customizations.' ); ?>
    325325</form>
  • trunk/src/wp-admin/includes/class-wp-filesystem-base.php

    r53872 r54062  
    263263        if ( $this->verbose ) {
    264264            /* translators: 1: Folder to locate, 2: Folder to start searching from. */
    265             printf( "\n" . __( 'Looking for %1$s in %2$s' ) . "<br/>\n", $folder, $base );
     265            printf( "\n" . __( 'Looking for %1$s in %2$s' ) . "<br />\n", $folder, $base );
    266266        }
    267267
     
    292292                if ( $this->verbose ) {
    293293                    /* translators: %s: Directory name. */
    294                     printf( "\n" . __( 'Changing to %s' ) . "<br/>\n", $newdir );
     294                    printf( "\n" . __( 'Changing to %s' ) . "<br />\n", $newdir );
    295295                }
    296296
     
    310310            if ( $this->verbose ) {
    311311                /* translators: %s: Directory name. */
    312                 printf( "\n" . __( 'Found %s' ) . "<br/>\n", $base . $last_path );
     312                printf( "\n" . __( 'Found %s' ) . "<br />\n", $base . $last_path );
    313313            }
    314314
  • trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php

    r53501 r54062  
    444444            }
    445445
    446             echo '</small></span><br/>';
     446            echo '</small></span><br />';
    447447        }
    448448    }
  • trunk/src/wp-admin/includes/class-wp-plugins-list-table.php

    r53876 r54062  
    753753
    754754            if ( $plugin_file !== $plugin_data['Name'] ) {
    755                 $plugin_name .= '<br/>' . $plugin_data['Name'];
     755                $plugin_name .= '<br />' . $plugin_data['Name'];
    756756            }
    757757
  • trunk/src/wp-admin/install.php

    r53749 r54062  
    188188                        ?>
    189189                        <input id="blog-public" type="radio" name="blog_public" value="1" <?php checked( 1, $blog_public ); ?> />
    190                         <label for="blog-public"><?php _e( 'Allow search engines to index this site' ); ?></label><br/>
     190                        <label for="blog-public"><?php _e( 'Allow search engines to index this site' ); ?></label><br />
    191191                        <input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked( 0, $blog_public ); ?> />
    192192                        <label for="blog-norobots"><?php _e( 'Discourage search engines from indexing this site' ); ?></label>
  • trunk/src/wp-admin/network/site-info.php

    r53455 r54062  
    198198            <?php foreach ( $attribute_fields as $field_key => $field_label ) : ?>
    199199                <label><input type="checkbox" name="blog[<?php echo $field_key; ?>]" value="1" <?php checked( (bool) $details->$field_key, true ); ?> <?php disabled( ! in_array( (int) $details->$field_key, array( 0, 1 ), true ) ); ?> />
    200                 <?php echo $field_label; ?></label><br/>
     200                <?php echo $field_label; ?></label><br />
    201201            <?php endforeach; ?>
    202202            <fieldset>
  • trunk/src/wp-admin/options-reading.php

    r52428 r54062  
    182182<?php if ( has_action( 'blog_privacy_selector' ) ) : ?>
    183183    <input id="blog-public" type="radio" name="blog_public" value="1" <?php checked( '1', get_option( 'blog_public' ) ); ?> />
    184     <label for="blog-public"><?php _e( 'Allow search engines to index this site' ); ?></label><br/>
     184    <label for="blog-public"><?php _e( 'Allow search engines to index this site' ); ?></label><br />
    185185    <input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked( '0', get_option( 'blog_public' ) ); ?> />
    186186    <label for="blog-norobots"><?php _e( 'Discourage search engines from indexing this site' ); ?></label>
  • trunk/src/wp-includes/media-template.php

    r53777 r54062  
    14391439                        ?>
    14401440                        </span>
    1441                         <button type="button" class="button-link remove-setting remove-track"><?php _ex( 'Remove video track', 'media' ); ?></button><br/>
     1441                        <button type="button" class="button-link remove-setting remove-track"><?php _ex( 'Remove video track', 'media' ); ?></button><br />
    14421442                        <# } ); #>
    14431443                    <# } else { #>
     
    14711471                    </dl>
    14721472                    <# if ( index % data.columns === data.columns - 1 ) { #>
    1473                         <br style="clear: both;">
     1473                        <br style="clear: both;" />
    14741474                    <# } #>
    14751475                <# } ); #>
  • trunk/src/wp-includes/widgets/class-wp-widget-archives.php

    r51967 r54062  
    224224            <input class="checkbox" type="checkbox"<?php checked( $instance['dropdown'] ); ?> id="<?php echo $this->get_field_id( 'dropdown' ); ?>" name="<?php echo $this->get_field_name( 'dropdown' ); ?>" />
    225225            <label for="<?php echo $this->get_field_id( 'dropdown' ); ?>"><?php _e( 'Display as dropdown' ); ?></label>
    226             <br/>
     226            <br />
    227227            <input class="checkbox" type="checkbox"<?php checked( $instance['count'] ); ?> id="<?php echo $this->get_field_id( 'count' ); ?>" name="<?php echo $this->get_field_name( 'count' ); ?>" />
    228228            <label for="<?php echo $this->get_field_id( 'count' ); ?>"><?php _e( 'Show post counts' ); ?></label>
Note: See TracChangeset for help on using the changeset viewer.