[wp-trac] [WordPress Trac] #39226: Twenty Fourteen: Template Edit link broken in the Page Attributes meta box
WordPress Trac
noreply at wordpress.org
Sat Dec 10 16:11:45 UTC 2016
#39226: Twenty Fourteen: Template Edit link broken in the Page Attributes meta box
---------------------------+-----------------------------
Reporter: afercia | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: normal | Keywords: has-screenshots
Focuses: accessibility |
---------------------------+-----------------------------
Twenty Fourteen makes use of the `page_attributes_meta_box_template`
filter to add an "Edit" link in the Page Attributes meta box:
[[Image(https://cldup.com/-KuXe89u5I.png)]]
This link works just for the default template `page.php` but since the
other two page template files (contributor and full-width) are placed in a
sub-directory, the related link is broken and all you get is an empty page
with "that file cannot be edited" message:
[[Image(https://cldup.com/WCvctYum03.png)]]
Example working link in the Theme editor:
`?file=page-templates%2Fcontributors.php&theme=twentyfourteen`
broken link in the meta box:
`?theme=twentyfourteen&file=contributors.php`
Accessibility note: the "Edit" link text should be preferably expanded
with an aria-label attribute to make sense even when read out of context.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39226>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list