PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.2
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.2
4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1 All 200 releases
← All changes | includes/Utils/Enqueue.php +11 -0 4.8.14.9.2 View file →
@@ -63,8 +63,19 @@
63 63 if ( $is_js ) {
64 64 $dependencies = array_unique( array_merge( $asset_config['dependencies'], $dependencies ) );
65 65 }
66 66 $version = $asset_config['version'];
67 + } else {
68 + // webpack only emits `<name>.asset.php` (with its content hash) for JS
69 + // entries, so stylesheets used to fall through to the plugin version
70 + // and never cache-busted between builds — browsers kept serving a
71 + // stale CSS against freshly-changed markup. Fall back to the file's
72 + // mtime so any rebuilt asset gets a new URL.
73 + $asset_path = $this->dist_path( $filename );
74 +
75 + if ( file_exists( $asset_path ) ) {
76 + $version = (string) filemtime( $asset_path );
77 + }
67 78 }
68 79
69 80 return [
70 81 'url' => $url,