Make WordPress Core

Changeset 58404


Ignore:
Timestamp:
06/13/2024 01:52:06 PM (4 months ago)
Author:
hellofromTonya
Message:

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.

Location:
branches/6.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.5

  • branches/6.5/src/wp-admin/includes/plugin-install.php

    r57714 r58404  
    948948    $all_plugin_dependencies_active    = $active_plugin_dependencies_count === $plugin_dependencies_count;
    949949
    950     sprintf(
    951         '<a class="install-now button" data-slug="%s" href="%s" aria-label="%s" data-name="%s">%s</a>',
    952         esc_attr( $data->slug ),
    953         esc_url( $status['url'] ),
    954         /* translators: %s: Plugin name and version. */
    955         esc_attr( sprintf( _x( 'Install %s now', 'plugin' ), $name ) ),
    956         esc_attr( $name ),
    957         _x( 'Install Now', 'plugin' )
    958     );
    959 
    960950    if ( current_user_can( 'install_plugins' ) || current_user_can( 'update_plugins' ) ) {
    961951        switch ( $status['status'] ) {
Note: See TracChangeset for help on using the changeset viewer.