Skip to content

Instantly share code, notes, and snippets.

View marsjaninzmarsa's full-sized avatar
👾
In outer space

Kuba Niewiarowski marsjaninzmarsa

👾
In outer space
View GitHub Profile
@marsjaninzmarsa
marsjaninzmarsa / version-string.php
Created January 2, 2020 05:53
My solution for cache busting in WordPress (drop-in to `/mu-plugins/` in Bedrock).
<?php
/**
* Replaces query version in registered scripts or styles with file modified time
*
* @link https://wordpress.stackexchange.com/a/346024/51130 based on
*
* @param $src
*
* @return string

Keybase proof

I hereby claim:

  • I am marsjaninzmarsa on github.
  • I am marsjaninzmarsa (https://keybase.io/marsjaninzmarsa) on keybase.
  • I have a public key whose fingerprint is E3A2 EE69 709C AC9E 2957 5224 78A3 6385 1983 2752

To claim this, I am signing this object: