fix(runtime): remove obsolete jQuery compatibility assets

This commit is contained in:
2026-09-05 21:31:11 +08:00
parent 4a12de38cb
commit 49ffdc6ab2
11 changed files with 5 additions and 805 deletions
@@ -47,6 +47,9 @@ test('front submit uses the WordPress-managed jQuery runtime', () => {
assert.doesNotMatch(source, /wp_deregister_script\('jquery'\)/);
assert.doesNotMatch(source, /wp_register_script\('jquery'/);
assert.doesNotMatch(source, /jquery-migrate/);
assert.equal(fs.existsSync(path.join(root, 'assets/js/runtime/libs/jquery.min.js')), false);
assert.equal(fs.existsSync(path.join(root, 'assets/js/runtime/libs/jquery-ui.min.js')), false);
assert.doesNotMatch(read('inc/modules/user-parts/urls.php'), /aksrt_get_profile_url/);
const page = read('templates/pages/page-submit.php');
assert.match(page, /\['loader_js', 'aksrt-front-submit-editor', 'aksrt-front-submit-pay-download'\]/);
@@ -55,19 +58,8 @@ test('front submit uses the WordPress-managed jQuery runtime', () => {
test('legacy runtime modules use jQuery explicitly without a dollar alias', () => {
const modules = [
'main',
'captcha',
'comment',
'input-expand',
'mini-touch',
'mini-upload',
'page-edit',
'page-navs',
'page-template',
'poster-share',
'section-navs',
'svg-icon',
'waterfall',
'weixin-share',
];
for (const module of modules) {