wp/wp-admin/includes/class-wp-themes-list-table.php
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
child 22 8c2e4d02f4ef
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
     9 
     9 
    10 /**
    10 /**
    11  * Core class used to implement displaying installed themes in a list table.
    11  * Core class used to implement displaying installed themes in a list table.
    12  *
    12  *
    13  * @since 3.1.0
    13  * @since 3.1.0
    14  * @access private
       
    15  *
    14  *
    16  * @see WP_List_Table
    15  * @see WP_List_Table
    17  */
    16  */
    18 class WP_Themes_List_Table extends WP_List_Table {
    17 class WP_Themes_List_Table extends WP_List_Table {
    19 
    18 
   169 		<?php $this->tablenav( 'bottom' ); ?>
   168 		<?php $this->tablenav( 'bottom' ); ?>
   170 		<?php
   169 		<?php
   171 	}
   170 	}
   172 
   171 
   173 	/**
   172 	/**
   174 	 * @return array
   173 	 * @return string[] Array of column titles keyed by their column name.
   175 	 */
   174 	 */
   176 	public function get_columns() {
   175 	public function get_columns() {
   177 		return array();
   176 		return array();
   178 	}
   177 	}
   179 
   178 
   211 			$actions['activate'] = sprintf(
   210 			$actions['activate'] = sprintf(
   212 				'<a href="%s" class="activatelink" title="%s">%s</a>',
   211 				'<a href="%s" class="activatelink" title="%s">%s</a>',
   213 				$activate_link,
   212 				$activate_link,
   214 				/* translators: %s: Theme name. */
   213 				/* translators: %s: Theme name. */
   215 				esc_attr( sprintf( _x( 'Activate &#8220;%s&#8221;', 'theme' ), $title ) ),
   214 				esc_attr( sprintf( _x( 'Activate &#8220;%s&#8221;', 'theme' ), $title ) ),
   216 				__( 'Activate' )
   215 				_x( 'Activate', 'theme' )
   217 			);
   216 			);
   218 
   217 
   219 			if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
   218 			if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
   220 				$actions['preview'] .= sprintf(
   219 				$actions['preview'] .= sprintf(
   221 					'<a href="%s" class="load-customize hide-if-no-customize">%s</a>',
   220 					'<a href="%s" class="load-customize hide-if-no-customize">%s</a>',