Making WordPress.org

Ticket #2891: 2891.2.diff

File 2891.2.diff, 2.0 KB (added by SergeyBiryukov, 8 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-controls.php

     
    3939        public static function get_status_button_label( $post_status ) {
    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                }
    6363
     
    8585                        <label for="post_status"><?php _e( 'Status:', 'wporg-plugins' ); ?></label>
    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        }
    9795