WordPress.org

Make WordPress Core

Ticket #16292: 16292.patch

File 16292.patch, 1.5 KB (added by SergeyBiryukov, 2 years ago)
  • wp-admin/includes/class-wp-ms-themes-list-table.php

     
    337337                                                $theme_meta[] = '<a href="' . $theme['Theme URI'] . '" title="' . esc_attr__( 'Visit theme homepage' ) . '">' . __( 'Visit Theme Site' ) . '</a>'; 
    338338 
    339339                                        $theme_meta = apply_filters( 'theme_row_meta', $theme_meta, $theme_key, $theme, $status ); 
    340                                         echo implode( ' | ', $theme_meta ); 
     340                                        echo implode( ' | ', $theme_meta ) . ' | '; 
    341341 
     342                                        if ( current_user_can( 'edit_themes' ) && $theme['Parent Theme'] ) { 
     343                                                /* translators: 1: theme title, 2:  template dir, 3: stylesheet_dir, 4: theme title, 5: parent_theme */ 
     344                                                printf( __( 'The template files are located in <code>%2$s</code>. The stylesheet files are located in <code>%3$s</code>. <strong>%4$s</strong> uses templates from <strong>%5$s</strong>. Changes made to the templates will affect both themes.' ), $theme['Title'], str_replace( WP_CONTENT_DIR, '', $theme['Template Dir'] ), str_replace( WP_CONTENT_DIR, '', $theme['Stylesheet Dir'] ), $theme['Title'], $theme['Parent Theme'] ); 
     345                                        } else { 
     346                                                printf( __( 'All of this theme&#8217;s files are located in <code>%2$s</code>.' ), $theme['Title'], str_replace( WP_CONTENT_DIR, '', $theme['Template Dir'] ), str_replace( WP_CONTENT_DIR, '', $theme['Stylesheet Dir'] ) ); 
     347                                        } 
     348 
    342349                                        echo "</div></td>"; 
    343350                                        break; 
    344351