Making WordPress.org

Changeset 10563


Ignore:
Timestamp:
01/09/2021 12:01:53 AM (5 years ago)
Author:
iandunn
Message:

wporg-main: Use dynamic cachebuster for convenience.

File:
1 edited

Legend:

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

    r10456 r10563  
    8484    $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
    8585
    86     wp_enqueue_style( 'wporg-style', get_theme_file_uri( '/css/style.css' ), [ 'dashicons', 'open-sans' ], '20201118a' );
     86    wp_enqueue_style(
     87        'wporg-style',
     88        get_theme_file_uri( '/css/style.css' ),
     89        array( 'dashicons', 'open-sans' ),
     90        filemtime( __DIR__ . '/style.css' )
     91    );
     92
    8793    wp_style_add_data( 'wporg-style', 'rtl', 'replace' );
    8894
Note: See TracChangeset for help on using the changeset viewer.