PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 2.10.0
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v2.10.0
2.10.0 2.10.01 2.9.1 2.9.0 2.8.1 2.8.0 2.7.7 2.7.5 2.7.0 2.6.01 2.6.0 2.5.0 2.4.01 trunk 1.0.90 1.0.91 1.0.92 1.0.93 1.0.94 1.0.95 1.0.96 1.0.97 1.0.98 1.0.99 1.1.0 All 77 releases
← All changes | app/Vite.php +17 -0 2.7.72.10.0 View file →
@@ -114,8 +114,25 @@
114 114
115 115 return false;
116 116 }
117 117
118 + /**
119 + * Build the URL an entry script is loaded with from HTML.
120 + *
121 + * The build rewrites every inter-chunk import to `<chunk>.js?ver=<version>`
122 + * (see src/dev/version-plugin.js), and wp_enqueue_script() emits the same
123 + * `?ver=` key. HTML script tags must match it exactly: to the browser
124 + * `app.js?version=x` and `app.js?ver=x` are two different modules, so a
125 + * mismatch evaluates the whole app a second time and remounts it.
126 + *
127 + * @param string $url
128 + * @return string
129 + */
130 + public static function versionedUrl($url)
131 + {
132 + return $url . '?ver=' . FLUENT_COMMUNITY_PLUGIN_VERSION;
133 + }
134 +
118 135 public static function getAssetsUrl()
119 136 {
120 137 if (!self::isDev()) {
121 138 return static::$assetsURL;