Errors on purge with certain 3rd party plugins
-
Theres no check on whether $url in purgeUrl() is actually an URL. When using 3rd party plugins like Contact Form 7 and saving a post there, FALSE is inserted into $purgeUrls, resulting in warnings when purging since you assume $p[‘host’] is set.
A simple fix:
public function purgeUrl( $url ) { $p = parse_url( $url ); if (!isset($p['host'])) { return; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Errors on purge with certain 3rd party plugins’ is closed to new replies.