Changeset 20160
- Timestamp:
- 03/08/2012 05:08:55 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-ms-themes-list-table.php
r20151 r20160 89 89 if ( $s ) { 90 90 $status = 'search'; 91 $themes['search'] = array_filter( $themes['all'], array( &$this, '_search_callback' ) );91 $themes['search'] = array_filter( array_merge( $themes['all'], $themes['broken'] ), array( &$this, '_search_callback' ) ); 92 92 } 93 93 … … 284 284 $theme_key = $theme->get_stylesheet(); 285 285 286 if ( ! $allowed ) 287 $actions['enable'] = '<a href="' . esc_url( wp_nonce_url($url . 'action=enable&theme=' . $theme_key . '&paged=' . $page . '&s=' . $s, 'enable-theme_' . $theme_key) ) . '" title="' . esc_attr__('Enable this theme') . '" class="edit">' . ( $this->is_site_themes ? __( 'Enable' ) : __( 'Network Enable' ) ) . '</a>'; 288 else 286 if ( ! $allowed ) { 287 if ( ! $theme->errors() ) 288 $actions['enable'] = '<a href="' . esc_url( wp_nonce_url($url . 'action=enable&theme=' . $theme_key . '&paged=' . $page . '&s=' . $s, 'enable-theme_' . $theme_key) ) . '" title="' . esc_attr__('Enable this theme') . '" class="edit">' . ( $this->is_site_themes ? __( 'Enable' ) : __( 'Network Enable' ) ) . '</a>'; 289 } else { 289 290 $actions['disable'] = '<a href="' . esc_url( wp_nonce_url($url . 'action=disable&theme=' . $theme_key . '&paged=' . $page . '&s=' . $s, 'disable-theme_' . $theme_key) ) . '" title="' . esc_attr__('Disable this theme') . '">' . ( $this->is_site_themes ? __( 'Disable' ) : __( 'Network Disable' ) ) . '</a>'; 291 } 290 292 291 293 if ( current_user_can('edit_themes') ) … … 324 326 case 'description': 325 327 echo "<td class='column-description desc'$style>"; 326 if ( $theme->errors() ) 327 echo '<p><strong>' . $theme->errors()->get_error_message() . '</strong></p>'; 328 if ( $theme->errors() ) { 329 $pre = $status == 'broken' ? '' : __( 'Broken Theme:' ) . ' '; 330 echo '<p><strong class="attention">' . $pre . $theme->errors()->get_error_message() . '</strong></p>'; 331 } 328 332 echo "<div class='theme-description'><p>" . $theme->display( 'Description' ) . "</p></div> 329 333 <div class='$class second theme-version-author-uri'>";
Note: See TracChangeset
for help on using the changeset viewer.