#3156 closed defect (bug) (fixed)
Allow child theme authors to override /_inc/ajax.php
Reported by: | r-a-y | Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | Version: | 1.5 | |
Component: | Templates | Keywords: | has-patch dev-feedback |
Cc: |
Description
Contrary to the comments in /_inc/ajax.php, it is currently not possible to override ajax.php in your child theme.
The attached patch fixes this, however I wouldn't recommend the general practice of overriding ajax.php as there's too much functionality built into bp-default; I'd just pick and choose the actions I'd want to override instead.
I'll leave it to the core devs to decide whether this should be included or not.
Attachments (2)
Note: See
TracTickets for help on using
tickets.
You'd need to check if the file existed, as it might not be in most child themes. I'm not sure if a file_exists or a apply_filters would be most appropriate here.