From 16bc8d38a66442f9a27d8bf4b2d73be9443bf8f0 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Fri, 2 Sep 2022 06:51:13 +0000 Subject: [PATCH] Coding Standards: Use a consistent markup for line break tags across Core. This changeset replaces `
` with `
` 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. Built from https://develop.svn.wordpress.org/trunk@54062 git-svn-id: http://core.svn.wordpress.org/trunk@53621 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-comments.php | 2 +- wp-admin/includes/class-custom-background.php | 4 ++-- wp-admin/includes/class-wp-filesystem-base.php | 6 +++--- wp-admin/includes/class-wp-ms-users-list-table.php | 2 +- wp-admin/includes/class-wp-plugins-list-table.php | 2 +- wp-admin/install.php | 2 +- wp-admin/network/site-info.php | 2 +- wp-admin/options-reading.php | 2 +- wp-includes/media-template.php | 4 ++-- wp-includes/version.php | 2 +- wp-includes/widgets/class-wp-widget-archives.php | 2 +- 11 files changed, 15 insertions(+), 15 deletions(-) diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 28be5c9df9..ed34545584 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -345,7 +345,7 @@ if ( isset( $_REQUEST['approved'] ) || isset( $_REQUEST['deleted'] ) || isset( $ } } - echo '

' . implode( "
\n", $messages ) . '

'; + echo '

' . implode( "
\n", $messages ) . '

'; } } ?> diff --git a/wp-admin/includes/class-custom-background.php b/wp-admin/includes/class-custom-background.php index 4914ebde39..f67105b0db 100644 --- a/wp-admin/includes/class-custom-background.php +++ b/wp-admin/includes/class-custom-background.php @@ -306,7 +306,7 @@ class Custom_Background {
-
+
@@ -320,7 +320,7 @@ class Custom_Background {
-
+
diff --git a/wp-admin/includes/class-wp-filesystem-base.php b/wp-admin/includes/class-wp-filesystem-base.php index 607915bfec..8d83b24dd6 100644 --- a/wp-admin/includes/class-wp-filesystem-base.php +++ b/wp-admin/includes/class-wp-filesystem-base.php @@ -262,7 +262,7 @@ class WP_Filesystem_Base { if ( $this->verbose ) { /* translators: 1: Folder to locate, 2: Folder to start searching from. */ - printf( "\n" . __( 'Looking for %1$s in %2$s' ) . "
\n", $folder, $base ); + printf( "\n" . __( 'Looking for %1$s in %2$s' ) . "
\n", $folder, $base ); } $folder_parts = explode( '/', $folder ); @@ -291,7 +291,7 @@ class WP_Filesystem_Base { if ( $this->verbose ) { /* translators: %s: Directory name. */ - printf( "\n" . __( 'Changing to %s' ) . "
\n", $newdir ); + printf( "\n" . __( 'Changing to %s' ) . "
\n", $newdir ); } // Only search for the remaining path tokens in the directory, not the full path again. @@ -309,7 +309,7 @@ class WP_Filesystem_Base { if ( isset( $files[ $last_path ] ) ) { if ( $this->verbose ) { /* translators: %s: Directory name. */ - printf( "\n" . __( 'Found %s' ) . "
\n", $base . $last_path ); + printf( "\n" . __( 'Found %s' ) . "
\n", $base . $last_path ); } return trailingslashit( $base . $last_path ); diff --git a/wp-admin/includes/class-wp-ms-users-list-table.php b/wp-admin/includes/class-wp-ms-users-list-table.php index d2ba7c72b5..f9eb81dc8d 100644 --- a/wp-admin/includes/class-wp-ms-users-list-table.php +++ b/wp-admin/includes/class-wp-ms-users-list-table.php @@ -443,7 +443,7 @@ class WP_MS_Users_List_Table extends WP_List_Table { echo "$link$sep"; } - echo '
'; + echo '
'; } } diff --git a/wp-admin/includes/class-wp-plugins-list-table.php b/wp-admin/includes/class-wp-plugins-list-table.php index d5a4a93e3f..217689ef91 100644 --- a/wp-admin/includes/class-wp-plugins-list-table.php +++ b/wp-admin/includes/class-wp-plugins-list-table.php @@ -752,7 +752,7 @@ class WP_Plugins_List_Table extends WP_List_Table { $plugin_name = $plugin_file; if ( $plugin_file !== $plugin_data['Name'] ) { - $plugin_name .= '
' . $plugin_data['Name']; + $plugin_name .= '
' . $plugin_data['Name']; } if ( true === ( $dropins[ $plugin_file ][1] ) ) { // Doesn't require a constant. diff --git a/wp-admin/install.php b/wp-admin/install.php index 8ff550c951..635113287d 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -187,7 +187,7 @@ function display_setup_form( $error = null ) { if ( has_action( 'blog_privacy_selector' ) ) { ?> /> -
+
/>

diff --git a/wp-admin/network/site-info.php b/wp-admin/network/site-info.php index 8cad4ead2a..894ebf048f 100644 --- a/wp-admin/network/site-info.php +++ b/wp-admin/network/site-info.php @@ -197,7 +197,7 @@ if ( ! empty( $messages ) ) { $field_label ) : ?>
+
diff --git a/wp-admin/options-reading.php b/wp-admin/options-reading.php index 2c89f14474..cf3dd98e5b 100644 --- a/wp-admin/options-reading.php +++ b/wp-admin/options-reading.php @@ -181,7 +181,7 @@ else :
/> -
+
/>

diff --git a/wp-includes/media-template.php b/wp-includes/media-template.php index f664ec7253..2aeac6e6bf 100644 --- a/wp-includes/media-template.php +++ b/wp-includes/media-template.php @@ -1438,7 +1438,7 @@ function wp_print_media_templates() { ); ?> -
+
<# } ); #> <# } else { #>
@@ -1470,7 +1470,7 @@ function wp_print_media_templates() { <# } #> <# if ( index % data.columns === data.columns - 1 ) { #> -
+
<# } #> <# } ); #> diff --git a/wp-includes/version.php b/wp-includes/version.php index 914eefa454..75f0ae9505 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-54061'; +$wp_version = '6.1-alpha-54062'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/widgets/class-wp-widget-archives.php b/wp-includes/widgets/class-wp-widget-archives.php index c3c3f3ccec..f32aa9bbb0 100644 --- a/wp-includes/widgets/class-wp-widget-archives.php +++ b/wp-includes/widgets/class-wp-widget-archives.php @@ -223,7 +223,7 @@ class WP_Widget_Archives extends WP_Widget {

id="get_field_id( 'dropdown' ); ?>" name="get_field_name( 'dropdown' ); ?>" /> -
+
id="get_field_id( 'count' ); ?>" name="get_field_name( 'count' ); ?>" />