From 0bde3af83189a647d0dcb656c34e26f4016d5fc2 Mon Sep 17 00:00:00 2001 From: William Earnhardt Date: Wed, 4 Aug 2021 16:24:36 -0400 Subject: [PATCH] Remove the check for nonce on page content (#106) * Remove the check for nonce on page content * Bump version to 2.0.8 * Add documentation on the release process Co-authored-by: Micah Wood --- README.md | 8 ++++++++ endurance-page-cache.php | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index baff094..76b8d07 100644 --- a/README.md +++ b/README.md @@ -7,3 +7,11 @@ [![License](https://img.shields.io/github/license/bluehost/endurance-page-cache?labelColor=333333&color=666666)](https://raw.githubusercontent.com/bluehost/endurance-page-cache/master/license.txt) Endurance Page Cache adds basic file-based caching to WordPress, as well as more advanced caching solutions in nginx and Cloudflare. EPC is designed to run best on Endurance systems and your mileage may vary. + +## Tagging a new release + +- Bump the version number in the header of the `endurance-page-cache.php` file. +- Push all changes to `master`. +- Merge all changes to `production`. +- Create a release on GitHub for the new version. +- Log into DigitalOcean and update the [`mu-plugins.json`](https://cdn.hiive.space/bluehost/mu-plugins.json) file on the CDN to reflect the new version number. diff --git a/endurance-page-cache.php b/endurance-page-cache.php index eb3285a..6d90a64 100644 --- a/endurance-page-cache.php +++ b/endurance-page-cache.php @@ -2,7 +2,7 @@ /** * Plugin Name: Endurance Page Cache * Description: This cache plugin is primarily for cache purging of the additional layers of cache that may be available on your hosting account. - * Version: 2.0.7 + * Version: 2.0.8 * Author: Mike Hansen * Author URI: https://www.mikehansen.me/ * License: GPLv2 or later @@ -27,7 +27,7 @@ die; } -define( 'EPC_VERSION', '2.0.7' ); +define( 'EPC_VERSION', '2.0.8' ); if ( ! class_exists( 'Endurance_Page_Cache' ) ) { @@ -609,7 +609,7 @@ public function edit_terms( $term_id ) { public function write( $page ) { $base = wp_parse_url( trailingslashit( get_option( 'home' ) ), PHP_URL_PATH ); - if ( false === strpos( $page, 'nonce' ) && ! empty( $page ) ) { + if ( ! empty( $page ) ) { $path = WP_CONTENT_DIR . '/endurance-page-cache' . str_replace( get_option( 'home' ), '', esc_url( $_SERVER['REQUEST_URI'] ) ); $path = str_replace( '/endurance-page-cache' . $base, '/endurance-page-cache/', $path ); $path = str_replace( '//', '/', $path );