Making WordPress.org

Changeset 6752


Ignore:
Timestamp:
02/26/2018 03:50:56 AM (7 years ago)
Author:
obenland
Message:

Main: Use WP built-in way for RTL styles.

Also bumps cache.

See [6751].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/functions.php

    r6659 r6752  
    8080 */
    8181function scripts() {
    82     $suffix = is_rtl() ? '-rtl' : '';
    83     wp_enqueue_style( 'wporg-style', get_stylesheet_directory_uri() . "/css/style{$suffix}.css", [ 'dashicons', 'open-sans' ], '20180216' );
     82    wp_enqueue_style( 'wporg-style', get_theme_file_uri( '/css/style.css' ), [ 'dashicons', 'open-sans' ], '20180226' );
     83    wp_style_add_data( 'wporg-style', 'rtl', 'replace' );
    8484
    8585    // phpcs:ignore Squiz.PHP.CommentedOutCode.Found, Squiz.Commenting.InlineComment.InvalidEndChar
Note: See TracChangeset for help on using the changeset viewer.