GeezerVison is showing github.com — fix(assets): bust asset caches with the plugin version · axeptio/wordpress-plugin@ca39d83
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: includes/classes/frontend/class-axeptio-sdk.php +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 21 | 21 | use function Axeptio\Plugin\get_sdk_settings; | 22 | 22 | use function Axeptio\Plugin\script_url; | 23 | 23 | use function Axeptio\Plugin\style_url; | 24 | | -use function Axeptio\Plugin\Utility\get_asset_info; | 25 | 24 |
| 26 | 25 | class Axeptio_Sdk extends Module { | 27 | 26 |
| @@ -62,7 +61,7 @@ public function enqueue_scripts() { | 62 | 61 | 'axeptio/main', | 63 | 62 | style_url( 'frontend/main', 'frontend' ), | 64 | 63 | array(), | 65 | | - get_asset_info( 'shared', 'version' ), | | 64 | + XPWP_VERSION, | 66 | 65 | ); | 67 | 66 |
| 68 | 67 | $cookies_version = Settings::get_option( 'version', false ); | |
Collapse file Copy file name to clipboardExpand all lines: includes/core.php +3-5Lines changed: 3 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 14 | 14 | use Axeptio\Plugin\Utils\Flash_Vars; | 15 | 15 | use Axeptio\Plugin\Utils\WP_Migration_Manager; | 16 | 16 | use WP_Error; | 17 | | -use function Axeptio\Plugin\Utility\get_asset_info; | 18 | 17 |
| 19 | 18 | /** | 20 | 19 | * Default setup routine | @@ -190,12 +189,11 @@ function admin_scripts() { | 190 | 189 | } | 191 | 190 |
| 192 | 191 | wp_enqueue_media(); | 193 | | - $dependencies = get_asset_info( 'admin', 'dependencies' ) ?? array(); | 194 | 192 | wp_enqueue_script( | 195 | 193 | 'axeptio/main', | 196 | 194 | script_url( 'backend/app', 'admin' ), | 197 | | - array_merge( $dependencies, array( 'wp-i18n' ) ), | 198 | | - get_asset_info( 'admin', 'version' ), | | 195 | + array( 'wp-i18n' ), | | 196 | + XPWP_VERSION, | 199 | 197 | true | 200 | 198 | ); | 201 | 199 | wp_set_script_translations( 'axeptio/main', 'axeptio-sdk-integration' ); | @@ -251,7 +249,7 @@ function admin_styles() { | 251 | 249 | 'axeptio/main', | 252 | 250 | style_url( 'backend/main', 'admin' ), | 253 | 251 | array(), | 254 | | - Utility\get_asset_info( 'shared', 'version' ), | | 252 | + XPWP_VERSION, | 255 | 253 | ); | 256 | 254 | } | 257 | 255 |
| |
|