Making WordPress.org

Changeset 13608


Ignore:
Timestamp:
04/29/2024 05:56:23 AM (10 months ago)
Author:
adamwood
Message:

wporg-support-2024: Prevent caching of parent theme styles

Use filemtime for version

See https://github.com/WordPress/wordpress.org/issues/248
See https://github.com/WordPress/wporg-parent-2021/issues/128

File:
1 edited

Legend:

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

    r13569 r13608  
    147147    wp_dequeue_style( 'wp4-styles' );
    148148
    149     wp_enqueue_style( 'wporg-parent-2021-style', get_theme_root_uri() . '/wporg-parent-2021/build/style.css', [ 'wporg-global-fonts' ] );
    150     wp_enqueue_style( 'wporg-parent-2021-block-styles', get_theme_root_uri() . '/wporg-parent-2021/build/block-styles.css', [ 'wporg-global-fonts' ] );
     149    wp_enqueue_style(
     150        'wporg-parent-2021-style',
     151        get_theme_root_uri() . '/wporg-parent-2021/build/style.css',
     152        [ 'wporg-global-fonts' ],
     153        filemtime( get_theme_root() . '/wporg-parent-2021/build/style.css' )
     154    );
     155    wp_enqueue_style(
     156        'wporg-parent-2021-block-styles',
     157        get_theme_root_uri() . '/wporg-parent-2021/build/block-styles.css',
     158        [ 'wporg-global-fonts' ],
     159        filemtime( get_theme_root() . '/wporg-parent-2021/build/block-styles.css' )
     160    );
    151161
    152162    wp_enqueue_style( 'support-style', get_stylesheet_uri(), [ 'dashicons' ], filemtime( __DIR__ . '/style.css' ) );
Note: See TracChangeset for help on using the changeset viewer.