From 612a0c8c8052ad7a7cf22559e50fea764f74ee02 Mon Sep 17 00:00:00 2001 From: desrosj Date: Tue, 19 Mar 2019 20:41:53 +0000 Subject: [PATCH] General: Prevent nested paragraph tags when displaying PHP update annotations. This change utilizes the new parameters accepted by `wp_update_php_annotation()` introduced in [44935] to prevent nested `

` tags when displaying the PHP update annotation. Props afragen, desrosj. Fixes #46269. Built from https://develop.svn.wordpress.org/trunk@44936 git-svn-id: http://core.svn.wordpress.org/trunk@44767 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-plugin-install-list-table.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/class-wp-plugin-install-list-table.php b/wp-admin/includes/class-wp-plugin-install-list-table.php index 9c09a80a16..bdba99344a 100644 --- a/wp-admin/includes/class-wp-plugin-install-list-table.php +++ b/wp-admin/includes/class-wp-plugin-install-list-table.php @@ -642,7 +642,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { self_admin_url( 'update-core.php' ), esc_url( wp_get_update_php_url() ) ); - wp_update_php_annotation(); + wp_update_php_annotation( '

', '' ); } elseif ( current_user_can( 'update_core' ) ) { printf( /* translators: %s: "Update WordPress" screen URL */ @@ -655,7 +655,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { ' ' . __( 'Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); - wp_update_php_annotation(); + wp_update_php_annotation( '

', '' ); } } elseif ( ! $compatible_wp ) { _e( 'This plugin doesn’t work with your version of WordPress.' ); @@ -674,7 +674,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { ' ' . __( 'Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); - wp_update_php_annotation(); + wp_update_php_annotation( '

', '' ); } } echo '

'; diff --git a/wp-includes/version.php b/wp-includes/version.php index ed4a5639ca..274e183370 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2-alpha-44935'; +$wp_version = '5.2-alpha-44936'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.