diff --git a/.phpcs.xml.dist b/.phpcs.xml.dist index e59049a..8206064 100644 --- a/.phpcs.xml.dist +++ b/.phpcs.xml.dist @@ -44,13 +44,12 @@ - - /includes/class-citecue-proxy\.php - /includes/class-citecue-llms-txt\.php - diff --git a/citecue.php b/citecue.php index b78e1f8..e3c7353 100644 --- a/citecue.php +++ b/citecue.php @@ -3,7 +3,7 @@ * Plugin Name: CiteCue AI Auto-Fix * Plugin URI: https://github.com/citecue/wordpress-plugin * Description: Serves CiteCue-optimized versions of your pages to AI bots and crawlers, publishes your llms.txt, and lets CiteCue push brand-building draft content into WordPress. - * Version: 1.0.2 + * Version: 1.0.3 * Requires at least: 5.8 * Requires PHP: 7.4 * Author: CiteCue @@ -56,7 +56,7 @@ static function () { return; } -define( 'CITECUE_VERSION', '1.0.2' ); +define( 'CITECUE_VERSION', '1.0.3' ); define( 'CITECUE_PLUGIN_FILE', __FILE__ ); define( 'CITECUE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); diff --git a/includes/class-citecue-llms-txt.php b/includes/class-citecue-llms-txt.php index 89af704..0997d76 100644 --- a/includes/class-citecue-llms-txt.php +++ b/includes/class-citecue-llms-txt.php @@ -197,6 +197,7 @@ private function is_llms_txt_request() { */ private function serve( $body ) { if ( ! defined( 'DONOTCACHEPAGE' ) ) { + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound -- the cross-plugin constant page caches look for; prefixing it would mean no cache ever sees it. define( 'DONOTCACHEPAGE', true ); } diff --git a/includes/class-citecue-proxy.php b/includes/class-citecue-proxy.php index c77ec3b..6179608 100644 --- a/includes/class-citecue-proxy.php +++ b/includes/class-citecue-proxy.php @@ -327,6 +327,7 @@ private function current_url() { */ private function serve( $body, $mode, $stale ) { if ( ! defined( 'DONOTCACHEPAGE' ) ) { + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound -- the cross-plugin constant page caches look for; prefixing it would mean no cache ever sees it. define( 'DONOTCACHEPAGE', true ); } diff --git a/readme.txt b/readme.txt index 609cde8..7c63b15 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: ai, llms.txt, gptbot, ai-seo, woocommerce Requires at least: 5.8 Tested up to: 7.0 Requires PHP: 7.4 -Stable tag: 1.0.2 +Stable tag: 1.0.3 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -100,6 +100,9 @@ The plugin folder is now citecue-ai-auto-fix. If you installed 1.0.0 by uploadin == Changelog == += 1.0.3 = +* No functional change. Annotates the DONOTCACHEPAGE definitions so code-quality tooling stops reporting a naming-convention violation the constant cannot avoid — page caches look for that exact name. + = 1.0.2 = * Translations no longer depend on the plugin loading them by hand; WordPress.org supplies them for the plugin slug. * The requested URL is sanitized on the way to CiteCue in a way that preserves percent-encoding, so pages with accented or non-Latin characters in the address are served and cached under the address they actually have.