GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(assets): bust asset caches with the plugin version · axeptio/wordpress-plugin@ca39d83

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • includes
    • classes/frontend
      • class-axeptio-sdk.php
    • core.php
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎includes/classes/frontend/class-axeptio-sdk.php‎

Copy file name to clipboardExpand all lines: includes/classes/frontend/class-axeptio-sdk.php
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
use function Axeptio\Plugin\get_sdk_settings;
2222
use function Axeptio\Plugin\script_url;
2323
use function Axeptio\Plugin\style_url;
24-
use function Axeptio\Plugin\Utility\get_asset_info;
2524

2625
class Axeptio_Sdk extends Module {
2726

@@ -62,7 +61,7 @@ public function enqueue_scripts() {
6261
'axeptio/main',
6362
style_url( 'frontend/main', 'frontend' ),
6463
array(),
65-
get_asset_info( 'shared', 'version' ),
64+
XPWP_VERSION,
6665
);
6766

6867
$cookies_version = Settings::get_option( 'version', false );
Collapse file

‎includes/core.php‎

Copy file name to clipboardExpand all lines: includes/core.php
+3-5Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Axeptio\Plugin\Utils\Flash_Vars;
1515
use Axeptio\Plugin\Utils\WP_Migration_Manager;
1616
use WP_Error;
17-
use function Axeptio\Plugin\Utility\get_asset_info;
1817

1918
/**
2019
* Default setup routine
@@ -190,12 +189,11 @@ function admin_scripts() {
190189
}
191190

192191
wp_enqueue_media();
193-
$dependencies = get_asset_info( 'admin', 'dependencies' ) ?? array();
194192
wp_enqueue_script(
195193
'axeptio/main',
196194
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,
199197
true
200198
);
201199
wp_set_script_translations( 'axeptio/main', 'axeptio-sdk-integration' );
@@ -251,7 +249,7 @@ function admin_styles() {
251249
'axeptio/main',
252250
style_url( 'backend/main', 'admin' ),
253251
array(),
254-
Utility\get_asset_info( 'shared', 'version' ),
252+
XPWP_VERSION,
255253
);
256254
}
257255

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.