mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
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]. Props hellofromTonya, costdev, rajinsharwar. Fixes #61420. Built from https://develop.svn.wordpress.org/trunk@58402 git-svn-id: http://core.svn.wordpress.org/trunk@57851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
01876b0906
commit
d71d3ac0fe
@ -942,16 +942,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" role="button">%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.6-beta2-58401';
|
||||
$wp_version = '6.6-beta2-58402';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user