Changeset 6347 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php
- Timestamp:
- 01/11/2018 06:52:58 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php
r6327 r6347 26 26 remove_action( 'template_redirect', 'redirect_canonical' ); 27 27 remove_action( 'template_redirect', 'wp_old_slug_redirect' ); 28 29 add_theme_support( 'wp4-styles' ); 28 30 } 29 31 add_action( 'after_setup_theme', 'wporg_themes_setup' ); … … 41 43 } 42 44 43 $stylesheet = get_stylesheet_uri(); 44 if ( is_rtl() ) { 45 $stylesheet = str_replace( '.css', '-rtl.css', $stylesheet ); 46 } 47 wp_enqueue_style( 'wporg-themes', $stylesheet, array(), 13 ); 45 $rtl = is_rtl() ? '-rtl' : ''; 46 wp_enqueue_style( 'wporg-themes', get_stylesheet_directory_uri() . "/css/style{$rtl}.css", [ 'open-sans', 'dashicons' ], 13 ); 48 47 49 48 if ( ! is_singular( 'page' ) ) { … … 92 91 // No Jetpack styles needed. 93 92 add_filter( 'jetpack_implode_frontend_css', '__return_false' ); 94 95 // No dashicons needed.96 wp_deregister_style( 'dashicons' );97 wp_register_style( 'dashicons', '' );98 93 99 94 /*
Note: See TracChangeset
for help on using the changeset viewer.