fix(theme): align reference layouts and restore passing contracts
Align homepage and category discovery, modern widgets, admin controls, quotes, and comments with the reference theme. Remove superseded paths and add rendering and behavior coverage. Update stale asset and finance contracts; all 760 Node tests and 139 widget assertions pass.
This commit is contained in:
1 parent
b520d29368
commit
8aa116ec43
63 files changed
+1985
-2304
No files matched your search
@@ -111,7 +111,7 @@ test('forced mode wins and thumb_if_has ignores spare and lazy placeholders', ()
|
||||
assert.match(data, /has_post_format\(\['image', 'gallery'\]/);
|
||||
});
|
||||
|
||||
test('category card mode carries its term id through archive, AJAX and REST rendering', () => {
|
||||
test('category card mode carries its term id through archive and shared AJAX rendering', () => {
|
||||
const resolver = read('inc/helpers/aksrt-archive.php');
|
||||
const config = read('inc/helpers/posts-renderer/config.php');
|
||||
const admin = read('src/Admin/Admin.php');
|
||||
@@ -124,7 +124,8 @@ test('category card mode carries its term id through archive, AJAX and REST rend
|
||||
assert.match(config, /\$term_id = absint\(\$args\['term_id'\]\)/);
|
||||
assert.doesNotMatch(config, /get_queried_object_id/);
|
||||
assert.match(admin, /\$clean\['term_id'\]\s*=\s*absint\(\$config\['term_id'\]\)/);
|
||||
assert.match(global, /aksrt_resolve_post_list_render_config\(\[\s*'context'\s*=>\s*\$archive_type,\s*'term_id'\s*=>\s*\$archive_type === 'category' \? \$term_id : 0,/);
|
||||
assert.doesNotMatch(global, /rest_archive_posts|\/archive\/posts/);
|
||||
assert.match(read('category.php'), /aksrt_archive_get_render_config\(\['context' => 'category'\]\)/);
|
||||
assert.doesNotMatch(config, /\b(?:list_scale|card_scale|mobile_meta)\b/);
|
||||
assert.doesNotMatch(resolver, /aksrt_archive_get_list_style_settings/);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user