refactor(modal): remove legacy compatibility paths
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -101,7 +101,7 @@ trait ScriptsPart1c {
|
||||
true
|
||||
);
|
||||
|
||||
// Runtime infrastructure: tbquire / notyf / confirm / refreshModal / scrollTopTo / [data-*] declarative
|
||||
// Runtime infrastructure: tbquire / notyf / confirm / scrollTopTo / [data-*] declarative
|
||||
$runtime_js = get_template_directory() . '/assets/js/aksrt-runtime.js';
|
||||
if (file_exists($runtime_js)) {
|
||||
wp_enqueue_script(
|
||||
@@ -132,7 +132,7 @@ trait ScriptsPart1c {
|
||||
'aksrt-core-modal-cache' => 'modal-cache.js',
|
||||
'aksrt-core-modal-state' => 'modal-state.js',
|
||||
'aksrt-core-modal-runtime' => 'modal-runtime.js',
|
||||
'aksrt-core-remote-modal' => 'remote-modal.js',
|
||||
'aksrt-core-modal-triggers' => 'modal-triggers.js',
|
||||
'aksrt-core-pagination' => 'pagination.js',
|
||||
'aksrt-core-archive' => 'archive.js',
|
||||
'aksrt-core-footer-tabbar' => 'footer-tabbar.js',
|
||||
@@ -153,7 +153,7 @@ trait ScriptsPart1c {
|
||||
'aksrt-core-modal-cache',
|
||||
'aksrt-core-modal-state',
|
||||
]);
|
||||
} elseif ($handle === 'aksrt-core-remote-modal') {
|
||||
} elseif ($handle === 'aksrt-core-modal-triggers') {
|
||||
$deps[] = 'aksrt-core-modal-runtime';
|
||||
}
|
||||
wp_enqueue_script(
|
||||
|
||||
Reference in New Issue
Block a user