Making WordPress.org

Changeset 5715


Ignore:
Timestamp:
07/26/2017 12:35:27 AM (7 years ago)
Author:
tellyworth
Message:

Plugin directory admin: improve buttons in the Plugin Controls metabox. Props @SergeyBiryukov

Fixes #2891

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-controls.php

    r5573 r5715  
    4040        switch ( $post_status ) {
    4141            case 'approved':
    42                 $label = __( 'Approve' );
     42                $label = __( 'Approve', 'wporg-plugins' );
    4343                break;
    4444            case 'rejected':
    45                 $label = __( 'Reject' );
     45                $label = __( 'Reject', 'wporg-plugins' );
    4646                break;
    4747            case 'pending':
    48                 $label = __( 'Mark as Pending' );
     48                $label = __( 'Mark as Pending', 'wporg-plugins' );
    4949                break;
    5050            case 'publish':
    51                 $label = __( 'Open' );
     51                $label = __( 'Open', 'wporg-plugins' );
    5252                break;
    5353            case 'disabled':
    54                 $label = __( 'Disable' );
     54                $label = __( 'Disable', 'wporg-plugins' );
    5555                break;
    5656            case 'closed':
    57                 $label = __( 'Close' );
     57                $label = __( 'Close', 'wporg-plugins' );
    5858                break;
    5959            default:
    60                 $label = __( 'Mark as Pending' );
     60                $label = __( 'Mark as Pending', 'wporg-plugins' );
    6161                break;
    6262        }
     
    8686            <strong id="plugin-status-display"><?php echo esc_html( get_post_status_object( $post->post_status )->label ); ?></strong>
    8787
    88             <p>
    8988            <?php foreach ( $statuses as $status ) : ?>
    90                 <button type="submit" name="post_status" value="<?php echo esc_attr( $status ); ?>" class="button set-plugin-status">
     89                <p><button type="submit" name="post_status" value="<?php echo esc_attr( $status ); ?>" class="button set-plugin-status">
    9190                    <?php echo self::get_status_button_label( $status ); ?>
    92                 </button>
     91                </button></p>
    9392            <?php endforeach; ?>
    94             </p>
    9593        </div><!-- .misc-pub-section --><?php
    9694    }
Note: See TracChangeset for help on using the changeset viewer.