Make WordPress Core

Changeset 56027

Timestamp:
06/25/2023 10:55:34 PM (13 months ago)
Author:
joedolson
Message:

Upgrade/Install: Update 'show details' button change.

Add a up/down arrow for visual affordance about the purpose of the button link; change button text from "Show details" to "More details".

Props krupajnanda, subrataemfluence, audrasjb, afercia, nrqsnchz, joedolson.
Fixes #44714.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/common.css

    r56025 r56027  
    552552.update-php div.error {
    553553    margin-left: 0;
     554
     555
     556
     557
     558
     559
     560
     561
    554562}
    555563
  • trunk/src/wp-admin/includes/class-bulk-upgrader-skin.php

    r55988 r56027  
    132132        printf( '<h2>' . $this->upgrader->strings['skin_before_update_header'] . ' <span class="spinner waiting-' . $this->upgrader->update_current . '"></span></h2>', $title, $this->upgrader->update_current, $this->upgrader->update_count );
    133133        echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js( $this->upgrader->update_current ) . '\').css("display", "inline-block");</script>';
    134         // This progress messages div gets moved via JavaScript when clicking on "Show details.".
     134        // This progress messages div gets moved via JavaScript when clicking on " details.".
    135135        echo '<div class="update-messages hide-if-js" id="progress-' . esc_attr( $this->upgrader->update_current ) . '"><p>';
    136136        $this->flush_output();
     
    155155                echo '<div class="updated js-update-details" data-update-details="progress-' . esc_attr( $this->upgrader->update_current ) . '">' .
    156156                    '<p>' . sprintf( $this->upgrader->strings['skin_update_successful'], $title ) .
    157                     ' <button type="button" class="hide-if-no-js button-link js-update-details-toggle" aria-expanded="false">' . __( 'Show details.' ) . '</button>' .
     157                    ' <button type="button" class="hide-if-no-js button-link js-update-details-toggle" aria-expanded="false">' . __( '</button>' .
    158158                    '</p></div>';
    159159            }
Note: See TracChangeset for help on using the changeset viewer.