Ticket #47515: 47515.2.diff
| File 47515.2.diff, 2.1 KB (added by , 7 years ago) |
|---|
-
src/wp-admin/includes/class-wp-themes-list-table.php
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: URL to Site Themes admin screen, 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: URL to Site Themes admin screen */ 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 } … … 241 250 <?php 242 251 if ( $theme->parent() ) { 243 252 printf( 244 /* translators: %s: link to documentation on child themes*/253 /* translators: 1: URL to documentation on Child Themes, 2: parent theme name */ 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' )