From 0dbbdc731954e2d4897ccc878228db681b294cee Mon Sep 17 00:00:00 2001 From: hellofromTonya Date: Thu, 13 Jun 2024 13:54:09 +0000 Subject: [PATCH] Plugins: Remove unassigned sprintf in wp_get_plugin_action_button(). Removes an unassigned `sprintf` that was accidentally included as part of [57545] in the `wp_get_plugin_action_button()`. A copy/paste whoopsie. The actual used code is assigned a wee bit lower in the function within the install case. Follow-up to [57545]. Reviewed by jorbin. Merges [58402] to the 6.5 branch. Props hellofromTonya, costdev, rajinsharwar. Fixes #61420. Built from https://develop.svn.wordpress.org/branches/6.5@58404 git-svn-id: http://core.svn.wordpress.org/branches/6.5@57853 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/plugin-install.php | 10 ---------- wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/wp-admin/includes/plugin-install.php b/wp-admin/includes/plugin-install.php index a3afbcb8e9..be795ed600 100644 --- a/wp-admin/includes/plugin-install.php +++ b/wp-admin/includes/plugin-install.php @@ -947,16 +947,6 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible $all_plugin_dependencies_installed = $installed_plugin_dependencies_count === $plugin_dependencies_count; $all_plugin_dependencies_active = $active_plugin_dependencies_count === $plugin_dependencies_count; - sprintf( - '%s', - esc_attr( $data->slug ), - esc_url( $status['url'] ), - /* translators: %s: Plugin name and version. */ - esc_attr( sprintf( _x( 'Install %s now', 'plugin' ), $name ) ), - esc_attr( $name ), - _x( 'Install Now', 'plugin' ) - ); - if ( current_user_can( 'install_plugins' ) || current_user_can( 'update_plugins' ) ) { switch ( $status['status'] ) { case 'install': diff --git a/wp-includes/version.php b/wp-includes/version.php index 974eec800c..d8c7e3e39b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5.5-alpha-58346'; +$wp_version = '6.5.5-alpha-58404'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.