diff -r f507feede89a -r 09a1c134465b web/wp-admin/includes/class-wp-themes-list-table.php
--- a/web/wp-admin/includes/class-wp-themes-list-table.php Wed Dec 19 12:35:13 2012 -0800
+++ b/web/wp-admin/includes/class-wp-themes-list-table.php Wed Dec 19 17:46:52 2012 -0800
@@ -12,9 +12,10 @@
protected $search_terms = array();
var $features = array();
- function __construct() {
+ function __construct( $args = array() ) {
parent::__construct( array(
'ajax' => true,
+ 'screen' => isset( $args['screen'] ) ? $args['screen'] : null,
) );
}
@@ -42,7 +43,7 @@
unset( $themes[ get_option( 'stylesheet' ) ] );
WP_Theme::sort_by_name( $themes );
- $per_page = 999;
+ $per_page = 36;
$page = $this->get_pagenum();
$start = ( $page - 1 ) * $per_page;
@@ -90,8 +91,8 @@
?>
display('Description'); ?>
- parent() ) :
- /* translators: 1: theme title, 2: template dir, 3: stylesheet_dir, 4: theme title, 5: parent_theme */ ?>
-
%2$s. The stylesheet files are located in %3$s
. %4$s uses templates from %5$s. Changes made to the templates will affect both themes.' ),
- $title, str_replace( WP_CONTENT_DIR, '', $theme->get_template_directory() ), str_replace( WP_CONTENT_DIR, '', $theme->get_stylesheet_directory() ), $title, $theme->parent()->display('Name') ); ?>
-
-
%2$s.' ),
- $title, str_replace( WP_CONTENT_DIR, '', $theme->get_template_directory() ), str_replace( WP_CONTENT_DIR, '', $theme->get_stylesheet_directory() ) ); ?>
-
+ parent() ) {
+ printf( '
' . __( 'This child theme requires its parent theme, %2$s.' ) . '
',
+ __( 'http://codex.wordpress.org/Child_Themes' ),
+ $theme->parent()->display( 'Name' ) );
+ } ?>