Opened 7 years ago
Closed 3 years ago
#8046 closed enhancement (wontfix)
Nouveau bp_nouveau_ajax_object_template_loader(): Use bp_get_template_part()
| Reported by: | dcavins | Owned by: | dcavins |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core | Version: | 4.1.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | dcavins |
Description
While adding Nouveau support to a plugin that interacts with BP's template stack and template selection filters, I found that the AJAX-requested template parts in Nouveau were not utilizing the bp_get_template_part filter. I think this was done so that the template path could be passed through a Nouveau-specific filter instead of just being built. Here's a small change that preserves the Nouveau filter while also using a slightly modified version of bp_get_template_part().
Attachments (1)
Change History (12)
#1
follow-up:
↓ 2
@
7 years ago
- Milestone Awaiting Review → 5.0.0
This can go into the next release.
#2
in reply to: ↑ 1
@
7 years ago
Replying to espellcaste:
This can go into the next release.
Thanks for taking a look, @espellcaste.
@imath, if you have a minute, could you take a look and make sure I'm not steamrolling the intent of the original code? Thanks!
#3
follow-up:
↓ 4
@
7 years ago
Hi @dcavins
Sure! To be honest, I can't remember why I've done so 😬. I will try to find why asap !
#4
in reply to: ↑ 3
@
7 years ago
Replying to imath:
Hi @dcavins
Sure! To be honest, I can't remember why I've done so 😬. I will try to find why asap !
Thanks!
#5
@
7 years ago
@dcavins
I found why I couldn't remember. Actually, I was using bp_get_template_part() 😀 see the last state of the file on the Next Template Packs repo
This part was edited in [11821] by @DJPaul. I'd ask him to be sure before committing the change ;)
#6
@
7 years ago
Ah! It looks like the point of that commit was to introduce a new filter, which couldn't have been done with the way bp_get_template_part() behaved at that time. We'll see if Paul has any memory beyond that.
Thanks again!
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Use bp_get_template_part() in Nouveau's AJAX template loader.