diff --git a/wp-admin/includes/class-wp-themes-list-table.php b/wp-admin/includes/class-wp-themes-list-table.php
index d040b7d20d..c3e5148439 100644
|
a
|
b
|
class WP_Themes_List_Table extends WP_List_Table { |
| 97 | 97 | $blog_id = get_current_blog_id(); |
| 98 | 98 | if ( is_multisite() ) { |
| 99 | 99 | if ( current_user_can( 'install_themes' ) && current_user_can( 'manage_network_themes' ) ) { |
| 100 | | printf( __( 'You only have one theme enabled for this site right now. Visit the Network Admin to <a href="%1$s">enable</a> or <a href="%2$s">install</a> more themes.' ), network_admin_url( 'site-themes.php?id=' . $blog_id ), network_admin_url( 'theme-install.php' ) ); |
| | 100 | printf( |
| | 101 | /* translators: 1: link to edit site, 2: URL to Add Themes admin screen */ |
| | 102 | __( 'You only have one theme enabled for this site right now. Visit the Network Admin to <a href="%1$s">enable</a> or <a href="%2$s">install</a> more themes.' ), |
| | 103 | network_admin_url( 'site-themes.php?id=' . $blog_id ), |
| | 104 | network_admin_url( 'theme-install.php' ) |
| | 105 | ); |
| 101 | 106 | |
| 102 | 107 | return; |
| 103 | 108 | } elseif ( current_user_can( 'manage_network_themes' ) ) { |
| 104 | | printf( __( 'You only have one theme enabled for this site right now. Visit the Network Admin to <a href="%1$s">enable</a> more themes.' ), network_admin_url( 'site-themes.php?id=' . $blog_id ) ); |
| | 109 | printf( |
| | 110 | /* translators: %s: link to edit site */ |
| | 111 | __( 'You only have one theme enabled for this site right now. Visit the Network Admin to <a href="%s">enable</a> more themes.' ), |
| | 112 | network_admin_url( 'site-themes.php?id=' . $blog_id ) |
| | 113 | ); |
| 105 | 114 | |
| 106 | 115 | return; |
| 107 | 116 | } |
| … |
… |
class WP_Themes_List_Table extends WP_List_Table { |
| 241 | 250 | <?php |
| 242 | 251 | if ( $theme->parent() ) { |
| 243 | 252 | printf( |
| 244 | | /* translators: %s: link to documentation on child themes */ |
| | 253 | /* translators: 1: link to documentation on child themes, 2: link to edit parent theme */ |
| 245 | 254 | ' <p class="howto">' . __( 'This <a href="%1$s">child theme</a> requires its parent theme, %2$s.' ) . '</p>', |
| 246 | 255 | __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ), |
| 247 | 256 | $theme->parent()->display( 'Name' ) |