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
This commit is contained in:
parent
6fa92780c0
commit
0dbbdc7319
|
@ -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(
|
||||
'<a class="install-now button" data-slug="%s" href="%s" aria-label="%s" data-name="%s">%s</a>',
|
||||
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':
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue