Automattic / Automattic/co-authors-plus

AMP author template overriding the theme

Open
#360 1 comment 0 reactions 0 assignees View on GitHub
status: needs investigation
Dominant language
PHP
Stars
322
Forks
216
Avg merge
7h 50m
Merged PRs (30d)
65

Description

Seems that even if you place a `amp/meta-author.php` template in your theme, the CAP template takes precedence. Ideally, the hierarchy should be:

Theme amp directory
CAP plugin template
AMP plugin template

This is easily fixed by unhooking the actions in `cap_add_amp_actions` but ideally it should function as described above.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the cap_add_amp_actions hook and how amp/meta-author.php is resolved when a theme provides it. Verify the current precedence, then confirm that the theme AMP template takes precedence over the CAP plugin template and the AMP plugin template.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.