From d3d78e755b815e1be5e15d8644dcd0688736dea1 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 20 Mar 2021 18:30:08 +0000 Subject: [PATCH] Coding Standards: Add a space before `/` character in some self-closing HTML tags. While this has no effect on the code, it fixes a minor inconsistency with the rest of core. Props laxman-prajapati. Fixes #52870. Built from https://develop.svn.wordpress.org/trunk@50556 git-svn-id: http://core.svn.wordpress.org/trunk@50169 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-tag-form.php | 6 +++--- wp-admin/includes/ajax-actions.php | 2 +- wp-admin/includes/class-custom-image-header.php | 8 ++++---- wp-admin/includes/class-wp-plugins-list-table.php | 2 +- wp-admin/includes/dashboard.php | 4 ++-- wp-admin/includes/meta-boxes.php | 2 +- wp-admin/includes/theme-install.php | 2 +- wp-admin/network/user-new.php | 2 +- wp-admin/update-core.php | 4 ++-- wp-includes/admin-bar.php | 2 +- .../customize/class-wp-customize-media-control.php | 4 ++-- .../class-wp-customize-site-icon-control.php | 4 ++-- wp-includes/embed.php | 2 +- wp-includes/feed-atom.php | 4 ++-- wp-includes/media-template.php | 12 ++++++------ .../sitemaps/class-wp-sitemaps-stylesheet.php | 2 +- wp-includes/version.php | 2 +- wp-includes/widgets/class-wp-nav-menu-widget.php | 2 +- wp-includes/widgets/class-wp-widget-custom-html.php | 2 +- wp-includes/widgets/class-wp-widget-text.php | 2 +- 20 files changed, 35 insertions(+), 35 deletions(-) diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php index a96d30e057..c1a36015b2 100644 --- a/wp-admin/edit-tag-form.php +++ b/wp-admin/edit-tag-form.php @@ -111,9 +111,9 @@ if ( $message ) { do_action( "{$taxonomy}_term_edit_form_tag" ); ?> > - - - + + + ', $style ); + $styles .= sprintf( '', $style ); } $html = do_shortcode( $parsed ); diff --git a/wp-admin/includes/class-custom-image-header.php b/wp-admin/includes/class-custom-image-header.php index 76eddff973..4702643c36 100644 --- a/wp-admin/includes/class-custom-image-header.php +++ b/wp-admin/includes/class-custom-image-header.php @@ -860,10 +860,10 @@ endif; - - - - + + + + diff --git a/wp-admin/includes/class-wp-plugins-list-table.php b/wp-admin/includes/class-wp-plugins-list-table.php index b8af207da0..9b74ca3c38 100644 --- a/wp-admin/includes/class-wp-plugins-list-table.php +++ b/wp-admin/includes/class-wp-plugins-list-table.php @@ -444,7 +444,7 @@ class WP_Plugins_List_Table extends WP_List_Table { ?> " method="get">

- + 'submit_users' ) ); ?>

@@ -479,7 +479,7 @@ function wp_network_dashboard_right_now() {

- + 'submit_sites' ) ); ?>

diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index 5d003d3210..61afe0f8e1 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/wp-admin/includes/meta-boxes.php @@ -638,7 +638,7 @@ function post_categories_meta_box( $post, $box ) {

- + diff --git a/wp-admin/includes/theme-install.php b/wp-admin/includes/theme-install.php index af3aee0b4c..d532beb9b2 100644 --- a/wp-admin/includes/theme-install.php +++ b/wp-admin/includes/theme-install.php @@ -183,7 +183,7 @@ function install_themes_upload() {

- +
- + diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index 2e9483517e..c7f4543dcd 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -158,8 +158,8 @@ function list_core_update( $update ) { wp_nonce_field( 'upgrade-core' ); echo '

'; - echo ''; - echo ''; + echo ''; + echo ''; if ( $show_buttons ) { if ( $first_pass ) { submit_button( $submit, $current ? '' : 'primary regular', 'upgrade', false ); diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index fb42e11335..e6fba4b362 100644 --- a/wp-includes/admin-bar.php +++ b/wp-includes/admin-bar.php @@ -1063,7 +1063,7 @@ function wp_admin_bar_search_menu( $wp_admin_bar ) { $form = '

'; $form .= ''; $form .= ''; - $form .= ''; + $form .= ''; $form .= '
'; $wp_admin_bar->add_node( diff --git a/wp-includes/customize/class-wp-customize-media-control.php b/wp-includes/customize/class-wp-customize-media-control.php index fc4801a96e..d327a4fa38 100644 --- a/wp-includes/customize/class-wp-customize-media-control.php +++ b/wp-includes/customize/class-wp-customize-media-control.php @@ -170,13 +170,13 @@ class WP_Customize_Media_Control extends WP_Customize_Control {

{{ data.attachment.artist || data.attachment.meta.artist }}

<# } #> <# } else if ( 'video' === data.attachment.type ) { #>
<# } else { #> diff --git a/wp-includes/customize/class-wp-customize-site-icon-control.php b/wp-includes/customize/class-wp-customize-site-icon-control.php index d21395c39c..7b689657fa 100644 --- a/wp-includes/customize/class-wp-customize-site-icon-control.php +++ b/wp-includes/customize/class-wp-customize-site-icon-control.php @@ -66,11 +66,11 @@ class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control
- <?php esc_attr_e( 'Preview as a browser icon' ); ?> + <?php esc_attr_e( 'Preview as a browser icon' ); ?>
- <?php esc_attr_e( 'Preview as an app icon' ); ?> + <?php esc_attr_e( 'Preview as an app icon' ); ?> <# } #>
diff --git a/wp-includes/embed.php b/wp-includes/embed.php index 2eee145b66..153a350d7a 100644 --- a/wp-includes/embed.php +++ b/wp-includes/embed.php @@ -1205,7 +1205,7 @@ function print_embed_sharing_dialog() { */ function the_embed_site_title() { $site_title = sprintf( - '%s', + '%s', esc_url( home_url() ), esc_url( get_site_icon_url( 32, includes_url( 'images/w-logo-blue.png' ) ) ), esc_url( get_site_icon_url( 64, includes_url( 'images/w-logo-blue.png' ) ) ), diff --git a/wp-includes/feed-atom.php b/wp-includes/feed-atom.php index 629ffc695e..6388fa3e47 100644 --- a/wp-includes/feed-atom.php +++ b/wp-includes/feed-atom.php @@ -93,8 +93,8 @@ do_action( 'rss_tag_pre', 'atom' ); if ( get_comments_number() || comments_open() ) : ?> - - + + diff --git a/wp-includes/media-template.php b/wp-includes/media-template.php index 70e1995707..bf4b966a79 100644 --- a/wp-includes/media-template.php +++ b/wp-includes/media-template.php @@ -368,7 +368,7 @@ function wp_print_media_templates() { <# if ( 'audio' === data.type ) { #>
<# } else if ( 'video' === data.type ) { @@ -384,7 +384,7 @@ function wp_print_media_templates() { <# if ( data.width ) { #>width="{{ data.width }}"<# } #> <# if ( data.height ) { #>height="{{ data.height }}"<# } #> <# if ( data.image && data.image.src !== data.icon ) { #>poster="{{ data.image.src }}"<# } #>> - +
<# } #> @@ -614,7 +614,7 @@ function wp_print_media_templates() { <# if ( 'audio' === data.type ) { #>
<# } else if ( 'video' === data.type ) { @@ -630,7 +630,7 @@ function wp_print_media_templates() { <# if ( data.width ) { #>width="{{ data.width }}"<# } #> <# if ( data.height ) { #>height="{{ data.height }}"<# } #> <# if ( data.image && data.image.src !== data.icon ) { #>poster="{{ data.image.src }}"<# } #>> - + <# } else { #> @@ -1491,14 +1491,14 @@ function wp_print_media_templates() {
- <?php esc_attr_e( 'Preview as a browser icon' ); ?> + <?php esc_attr_e( 'Preview as a browser icon' ); ?>
- <?php esc_attr_e( 'Preview as an app icon' ); ?> + <?php esc_attr_e( 'Preview as an app icon' ); ?>
diff --git a/wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php b/wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php index e81529af07..3051900065 100644 --- a/wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php +++ b/wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php @@ -72,7 +72,7 @@ class WP_Sitemaps_Stylesheet { exclude-result-prefixes="sitemap" > - +