wp/wp-admin/includes/class-wp-ms-themes-list-table.php
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
   492 
   492 
   493 		return $actions;
   493 		return $actions;
   494 	}
   494 	}
   495 
   495 
   496 	/**
   496 	/**
       
   497 	 * Generates the list table rows.
       
   498 	 *
       
   499 	 * @since 3.1.0
   497 	 */
   500 	 */
   498 	public function display_rows() {
   501 	public function display_rows() {
   499 		foreach ( $this->items as $theme ) {
   502 		foreach ( $this->items as $theme ) {
   500 			$this->single_row( $theme );
   503 			$this->single_row( $theme );
   501 		}
   504 		}
   699 	 */
   702 	 */
   700 	public function column_description( $theme ) {
   703 	public function column_description( $theme ) {
   701 		global $status, $totals;
   704 		global $status, $totals;
   702 
   705 
   703 		if ( $theme->errors() ) {
   706 		if ( $theme->errors() ) {
   704 			$pre = 'broken' === $status ? __( 'Broken Theme:' ) . ' ' : '';
   707 			$pre = 'broken' === $status ? '<strong class="error-message">' . __( 'Broken Theme:' ) . '</strong> ' : '';
   705 			echo '<p><strong class="error-message">' . $pre . $theme->errors()->get_error_message() . '</strong></p>';
   708 			wp_admin_notice(
       
   709 				$pre . $theme->errors()->get_error_message(),
       
   710 				array(
       
   711 					'type'               => 'error',
       
   712 					'additional_classes' => 'inline',
       
   713 				)
       
   714 			);
   706 		}
   715 		}
   707 
   716 
   708 		if ( $this->is_site_themes ) {
   717 		if ( $this->is_site_themes ) {
   709 			$allowed = $theme->is_allowed( 'site', $this->site_id );
   718 			$allowed = $theme->is_allowed( 'site', $this->site_id );
   710 		} else {
   719 		} else {