Make WordPress Core

Ticket #40453: 40453.patch

File 40453.patch, 1.8 KB (added by Cheffheid, 7 years ago)

Change the "Show Details" anchor tag to a button.

  • wp-admin/includes/class-bulk-upgrader-skin.php

     
    4343                /* translators: 1: Title of an update */
    4444                $this->upgrader->strings['skin_update_failed'] = __('The update of %1$s failed.');
    4545                /* translators: 1: Title of an update */
    46                 $this->upgrader->strings['skin_update_successful'] = __( '%1$s updated successfully.' ) . ' <a onclick="%2$s" href="#" class="hide-if-no-js"><span>' . __( 'Show Details' ) . '</span><span class="hidden">' . __( 'Hide Details' ) . '</span></a>';
     46                $this->upgrader->strings['skin_update_successful'] = __( '%1$s updated successfully.' ) . ' <button onclick="%2$s" type="button" class="hide-if-no-js button-link"><span>' . __( 'Show Details' ) . '</span><span class="hidden">' . __( 'Hide Details' ) . '</span></button>';
    4747                $this->upgrader->strings['skin_upgrade_end'] = __('All updates have been completed.');
    4848        }
    4949
     
    149149                }
    150150                if ( $this->result && ! is_wp_error( $this->result ) ) {
    151151                        if ( ! $this->error )
    152                                 echo '<div class="updated"><p>' . sprintf($this->upgrader->strings['skin_update_successful'], $title, 'jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').toggle();jQuery(\'span\', this).toggle(); return false;') . '</p></div>';
     152                                echo '<div class="updated"><p>' . sprintf($this->upgrader->strings['skin_update_successful'], $title, 'jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').toggle();jQuery(\'span\', this).toggle();') . '</p></div>';
    153153                        echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').hide();</script>';
    154154                }
    155155