Make WordPress Core

Changeset 58402

Timestamp:
06/13/2024 01:25:41 PM (6 weeks 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].

Props hellofromTonya, costdev, rajinsharwar.
Fixes #61420.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin-install.php

    r58396 r58402  
    943943    $all_plugin_dependencies_active    = $active_plugin_dependencies_count === $plugin_dependencies_count;
    944944
    945     sprintf(
    946         '<a class="install-now button" data-slug="%s" href="%s" aria-label="%s" data-name="%s" role="button">%s</a>',
    947         esc_attr( $data->slug ),
    948         esc_url( $status['url'] ),
    949         /* translators: %s: Plugin name and version. */
    950         esc_attr( sprintf( _x( 'Install %s now', 'plugin' ), $name ) ),
    951         esc_attr( $name ),
    952         _x( 'Install Now', 'plugin' )
    953     );
    954 
    955945    if ( current_user_can( 'install_plugins' ) || current_user_can( 'update_plugins' ) ) {
    956946        switch ( $status['status'] ) {
Note: See TracChangeset for help on using the changeset viewer.