Changeset 5715
- Timestamp:
- 07/26/2017 12:35:27 AM (7 years ago)
- 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 40 40 switch ( $post_status ) { 41 41 case 'approved': 42 $label = __( 'Approve' );42 $label = __( 'Approve', 'wporg-plugins' ); 43 43 break; 44 44 case 'rejected': 45 $label = __( 'Reject' );45 $label = __( 'Reject', 'wporg-plugins' ); 46 46 break; 47 47 case 'pending': 48 $label = __( 'Mark as Pending' );48 $label = __( 'Mark as Pending', 'wporg-plugins' ); 49 49 break; 50 50 case 'publish': 51 $label = __( 'Open' );51 $label = __( 'Open', 'wporg-plugins' ); 52 52 break; 53 53 case 'disabled': 54 $label = __( 'Disable' );54 $label = __( 'Disable', 'wporg-plugins' ); 55 55 break; 56 56 case 'closed': 57 $label = __( 'Close' );57 $label = __( 'Close', 'wporg-plugins' ); 58 58 break; 59 59 default: 60 $label = __( 'Mark as Pending' );60 $label = __( 'Mark as Pending', 'wporg-plugins' ); 61 61 break; 62 62 } … … 86 86 <strong id="plugin-status-display"><?php echo esc_html( get_post_status_object( $post->post_status )->label ); ?></strong> 87 87 88 <p>89 88 <?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"> 91 90 <?php echo self::get_status_button_label( $status ); ?> 92 </button> 91 </button></p> 93 92 <?php endforeach; ?> 94 </p>95 93 </div><!-- .misc-pub-section --><?php 96 94 }
Note: See TracChangeset
for help on using the changeset viewer.