Opened 12 years ago
Closed 12 years ago
#5671 closed defect (bug) (fixed)
Unable to register class method as template stack location
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.1 | Priority: | high |
| Severity: | major | Version: | 1.7 |
| Component: | Appearance - Template Pack | Keywords: | commit |
| Cc: |
Description
In bp_register_template_stack() the function_exists() check is preventing class methods from being used as a callback.
Change History (6)
#1
@
12 years ago
- Owner set to johnjamesjacoby
- Resolution set to fixed
- Status changed from new to closed
#3
follow-up:
↓ 5
@
12 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Best is probably to use is_callable(). Then indiscriminate arrays won't be allowed through, and you only have to do a single check for all PHP callable types.
#5
in reply to:
↑ 3
@
12 years ago
Replying to boonebgorges:
Best is probably to use
is_callable(). Then indiscriminate arrays won't be allowed through, and you only have to do a single check for all PHP callable types.
Duh. Thanks for this. Much nicer.
Note: See
TracTickets for help on using
tickets.
In 8461: