Opened 5 weeks ago
Last modified 5 weeks ago
#9339 assigned defect (bug)
`wp_start_template_enhancement_output_buffer ` Fatal Error on BP > 14.5.0 with WP < 6.9
| Reported by: | samedwards | Owned by: | espellcaste |
|---|---|---|---|
| Priority: | normal | Milestone: | 14.5.3 |
| Component: | Core | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
As part of #9309, wp_start_template_enhancement_output_buffer was hooked to bp_core_pre_load_template, but wp_start_template_enhancement_output_buffer was only added in WP 6.9, and the hook is added unconditionally, so for any WP version missing this function, a fatal error is thrown
Uncaught Error: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "wp_start_template_enhancement_output_buffer" not found or invalid function name in [...]/wp-includes/class-wp-hook.php on line 324
For now I'm working around this by providing a dummy function wrapped in a function_exists check in an mu-plugin
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Ah, my mistake. I can fix it.