Make WordPress Core


Ignore:
Timestamp:
02/10/2020 09:13:08 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Privacy: Convert buttons to links visually in Privacy Export/Erasure "Next Steps" column.

With a lot of export or erasure requests, the secondary buttons were becoming overwhelming when stacked on top of each other.

Props xkon, karmatosed.
Fixes #49323.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php

    r47246 r47247  
    100100
    101101                ?>
    102                 <span class="export-personal-data-idle"><button type="button" class="button export-personal-data-handle"><?php _e( 'Send Export Link' ); ?></button></span>
    103                 <span class="export-personal-data-processing button updating-message hidden"><?php _e( 'Sending Email...' ); ?> <span class="export-progress"></span></span>
     102                <span class="export-personal-data-idle"><button type="button" class="button-link export-personal-data-handle"><?php _e( 'Send Export Link' ); ?></button></span>
     103                <span class="export-personal-data-processing hidden"><?php _e( 'Sending Email...' ); ?> <span class="export-progress"></span></span>
    104104                <span class="export-personal-data-success success-message hidden"><?php _e( 'Email sent.' ); ?></span>
    105                 <span class="export-personal-data-failed hidden"><?php _e( 'Email could not be sent.' ); ?> <button type="button" class="button export-personal-data-handle"><?php _e( 'Retry' ); ?></button></span>
     105                <span class="export-personal-data-failed hidden"><?php _e( 'Email could not be sent.' ); ?> <button type="button" class="button-link export-personal-data-handle"><?php _e( 'Retry' ); ?></button></span>
    106106                <?php
    107107
     
    109109                break;
    110110            case 'request-failed':
    111                 submit_button( __( 'Retry' ), 'secondary', 'privacy_action_email_retry[' . $item->ID . ']', false );
     111                echo '<button type="submit" class="button-link" name="privacy_action_email_retry[' . $item->ID . ']" id="privacy_action_email_retry[' . $item->ID . ']">' . __( 'Retry' ) . '</button>';
    112112                break;
    113113            case 'request-completed':
     
    123123                        'bulk-privacy_requests'
    124124                    )
    125                 ) . '" class="button">' . esc_html__( 'Remove request' ) . '</a>';
     125                ) . '">' . esc_html__( 'Remove request' ) . '</a>';
    126126                break;
    127127        }
Note: See TracChangeset for help on using the changeset viewer.