From a2485d0e8bf791b4d87b496bd3a379bdfdc33b19 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Tue, 29 Nov 2022 21:28:01 +0000 Subject: [PATCH] Coding Standards: Use consistent markup for line break tags on `update-core.php`. 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 Follow-up to [54062]. Props rajanpanchal2028, alberuni-azad, sabernhardt. Fixes #57226. See #56791. git-svn-id: https://develop.svn.wordpress.org/trunk@54897 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/update-core.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php index 25dea0a291..b362ef2b3a 100644 --- a/src/wp-admin/update-core.php +++ b/src/wp-admin/update-core.php @@ -402,7 +402,7 @@ function core_auto_updates_settings() { _e( 'This site is automatically kept up to date with each new version of WordPress.' ); if ( $can_set_update_option ) { - echo '
'; + echo '
'; printf( '%s', wp_nonce_url( add_query_arg( 'value', 'disable', $action_url ), 'core-major-auto-updates-nonce' ), @@ -413,7 +413,7 @@ function core_auto_updates_settings() { _e( 'This site is automatically kept up to date with maintenance and security releases of WordPress only.' ); if ( $can_set_update_option ) { - echo '
'; + echo '
'; printf( '%s', wp_nonce_url( add_query_arg( 'value', 'enable', $action_url ), 'core-major-auto-updates-nonce' ), @@ -535,7 +535,7 @@ function list_plugin_updates() { $compatible_php = is_php_version_compatible( $requires_php ); if ( ! $compatible_php && current_user_can( 'update_php' ) ) { - $compat .= '
' . __( 'This update does not work with your version of PHP.' ) . ' '; + $compat .= '
' . __( 'This update does not work with your version of PHP.' ) . ' '; $compat .= sprintf( /* translators: %s: URL to Update PHP page. */ __( 'Learn more about updating PHP.' ), @@ -681,7 +681,7 @@ function list_theme_updates() { $compat = ''; if ( ! $compatible_wp && ! $compatible_php ) { - $compat .= '
' . __( 'This update does not work with your versions of WordPress and PHP.' ) . ' '; + $compat .= '
' . __( 'This update does not work with your versions of WordPress and PHP.' ) . ' '; if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { $compat .= sprintf( /* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */ @@ -715,7 +715,7 @@ function list_theme_updates() { } } } elseif ( ! $compatible_wp ) { - $compat .= '
' . __( 'This update does not work with your version of WordPress.' ) . ' '; + $compat .= '
' . __( 'This update does not work with your version of WordPress.' ) . ' '; if ( current_user_can( 'update_core' ) ) { $compat .= sprintf( /* translators: %s: URL to WordPress Updates screen. */ @@ -724,7 +724,7 @@ function list_theme_updates() { ); } } elseif ( ! $compatible_php ) { - $compat .= '
' . __( 'This update does not work with your version of PHP.' ) . ' '; + $compat .= '
' . __( 'This update does not work with your version of PHP.' ) . ' '; if ( current_user_can( 'update_php' ) ) { $compat .= sprintf( /* translators: %s: URL to Update PHP page. */