Making WordPress.org


Ignore:
Timestamp:
03/28/2022 07:57:39 PM (2 years ago)
Author:
coffee2code
Message:

Photo Directory: Use filemtime of css/style.css as version when enqueuing stylesheet.

File:
1 edited

Legend:

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

    r11647 r11708  
    8787 */
    8888function scripts() {
    89     wp_enqueue_style( 'wporg-style', get_stylesheet_directory_uri() .  '/css/style.css', [ 'dashicons', 'open-sans' ], '20220303' );
     89    wp_enqueue_style( 'wporg-style', get_stylesheet_directory_uri() .  '/css/style.css', [ 'dashicons', 'open-sans' ], filemtime( __DIR__ . '/css/style.css' ) );
    9090    wp_style_add_data( 'wporg-style', 'rtl', 'replace' );
    9191
Note: See TracChangeset for help on using the changeset viewer.