[wp-trac] [WordPress Trac] #39132: WP 4.7, object-cache.php breaks the site if APC is not enabled in php
WordPress Trac
noreply at wordpress.org
Thu Dec 8 02:46:12 UTC 2016
#39132: WP 4.7, object-cache.php breaks the site if APC is not enabled in php
----------------------------+--------------------
Reporter: innocuo | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7.1
Component: Bootstrap/Load | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
----------------------------+--------------------
Comment (by innocuo):
I was just replying, too :)
@jorbin, as @dd32 mentioned, {{{global $wp_filter;}}} needs to be added
within {{{wp_start_object_cache()}}}
After doing that, your patch works OK.I tested the following cases:
- if {{{object-cache.php}}} v2.0.6 exists
- if {{{object-cache.php}}} doesn't exist
- if {{{object-cache.php}}} exists and is an empty file
in all cases, I don't have APC enabled. It looks like it should work if
APC is enabled as then {{{object-cache.php}}} doesn't add anything to
{{{$wp_filter}}}.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39132#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list