wp/wp-admin/includes/class-wp-application-passwords-list-table.php
changeset 21 48c4eec2b7e6
parent 18 be944660c56a
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
     9 
     9 
    10 /**
    10 /**
    11  * Class for displaying the list of application password items.
    11  * Class for displaying the list of application password items.
    12  *
    12  *
    13  * @since 5.6.0
    13  * @since 5.6.0
    14  * @access private
       
    15  *
    14  *
    16  * @see WP_List_Table
    15  * @see WP_List_Table
    17  */
    16  */
    18 class WP_Application_Passwords_List_Table extends WP_List_Table {
    17 class WP_Application_Passwords_List_Table extends WP_List_Table {
    19 
    18 
    20 	/**
    19 	/**
    21 	 * Gets the list of columns.
    20 	 * Gets the list of columns.
    22 	 *
    21 	 *
    23 	 * @since 5.6.0
    22 	 * @since 5.6.0
    24 	 *
    23 	 *
    25 	 * @return array
    24 	 * @return string[] Array of column titles keyed by their column name.
    26 	 */
    25 	 */
    27 	public function get_columns() {
    26 	public function get_columns() {
    28 		return array(
    27 		return array(
    29 			'name'      => __( 'Name' ),
    28 			'name'      => __( 'Name' ),
    30 			'created'   => __( 'Created' ),
    29 			'created'   => __( 'Created' ),
   145 	/**
   144 	/**
   146 	 * Generates custom table navigation to prevent conflicting nonces.
   145 	 * Generates custom table navigation to prevent conflicting nonces.
   147 	 *
   146 	 *
   148 	 * @since 5.6.0
   147 	 * @since 5.6.0
   149 	 *
   148 	 *
   150 	 * @param string $which The location of the bulk actions: 'top' or 'bottom'.
   149 	 * @param string $which The location of the bulk actions: Either 'top' or 'bottom'.
   151 	 */
   150 	 */
   152 	protected function display_tablenav( $which ) {
   151 	protected function display_tablenav( $which ) {
   153 		?>
   152 		?>
   154 		<div class="tablenav <?php echo esc_attr( $which ); ?>">
   153 		<div class="tablenav <?php echo esc_attr( $which ); ?>">
   155 			<?php if ( 'bottom' === $which ) : ?>
   154 			<?php if ( 'bottom' === $which ) : ?>
   252 					do_action( "manage_{$this->screen->id}_custom_column_js_template", $column_name );
   251 					do_action( "manage_{$this->screen->id}_custom_column_js_template", $column_name );
   253 					break;
   252 					break;
   254 			}
   253 			}
   255 
   254 
   256 			if ( $is_primary ) {
   255 			if ( $is_primary ) {
   257 				echo '<button type="button" class="toggle-row"><span class="screen-reader-text">' . __( 'Show more details' ) . '</span></button>';
   256 				echo '<button type="button" class="toggle-row"><span class="screen-reader-text">' .
       
   257 					/* translators: Hidden accessibility text. */
       
   258 					__( 'Show more details' ) .
       
   259 				'</span></button>';
   258 			}
   260 			}
   259 
   261 
   260 			echo '</td>';
   262 			echo '</td>';
   261 		}
   263 		}
   262 
   264