Ticket #21789: dashboard_filter.patch
| File dashboard_filter.patch, 2.0 KB (added by markoheijnen, 9 months ago) |
|---|
-
wp-content/themes/twentyeleven/functions.php
611 611 } 612 612 add_filter( 'body_class', 'twentyeleven_body_classes' ); 613 613 614 /** 615 * Adds a customize link to the welcome panel to show the user they can switch color scheme 616 * 617 * @since Twenty Eleven 1.5 618 */ 619 function twentyeleven_customize_links( $customize_links ) { 620 array_unshift( $customize_links, sprintf( __( '<a href="%s">Choose light or dark</a>' ), esc_url( admin_url( 'themes.php?page=theme_options' ) ) ) ); 621 return $customize_links; 622 } 623 add_filter( 'theme_customize_links', 'twentyeleven_customize_links' ); -
wp-admin/includes/dashboard.php
1286 1286 echo '</p>'; 1287 1287 else: 1288 1288 $customize_links = array(); 1289 if ( 'twentyeleven' == $theme->get_stylesheet() )1290 $customize_links[] = sprintf( __( '<a href="%s">Choose light or dark</a>' ), esc_url( admin_url( 'themes.php?page=theme_options' ) ) );1291 1292 1289 if ( current_theme_supports( 'custom-background' ) ) 1293 1290 $customize_links[] = sprintf( __( '<a href="%s">Set a background color</a>' ), esc_url( admin_url( 'themes.php?page=custom-background' ) ) ); 1294 1291 … … 1298 1295 if ( current_theme_supports( 'widgets' ) ) 1299 1296 $customize_links[] = sprintf( __( '<a href="%s">Add some widgets</a>' ), esc_url( admin_url( 'widgets.php' ) ) ); 1300 1297 1298 $customize_links = apply_filters( 'theme_customize_links', $customize_links, $theme->get_stylesheet() ); 1299 1301 1300 if ( ! empty( $customize_links ) ) { 1302 1301 echo '<p>'; 1303 1302 printf( __( 'Use the current theme — %1$s — or <a href="%2$s">choose a new one</a>. If you stick with %1$s, here are a few ways to make your site look unique.' ), $theme->display('Name'), esc_url( admin_url( 'themes.php' ) ) );
