Changeset 3395803
- Timestamp:
- 11/14/2025 02:35:36 PM (4 months ago)
- Location:
- nexa-blocks
- Files:
-
- 2 edited
-
tags/1.1.1/nexa-blocks.php (modified) (1 diff)
-
trunk/nexa-blocks.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
nexa-blocks/tags/1.1.1/nexa-blocks.php
r3392899 r3395803 14 14 * @package NexaBlocks 15 15 */ 16 17 // IMPORTANT FIX: Prevent any processing on sitemap requests 18 if ( ! empty( $_SERVER['REQUEST_URI'] ) ) { 19 $request_uri = $_SERVER['REQUEST_URI']; 20 21 if ( strpos( $request_uri, 'sitemap' ) !== false || 22 strpos( $request_uri, '.xml' ) !== false || 23 strpos( $request_uri, 'xsl' ) !== false || 24 ( isset( $_GET['sitemap'] ) ) ) { 25 // Don't load Nexa Blocks on sitemap pages 26 return; 27 } 28 } 16 29 17 30 if ( ! defined( 'ABSPATH' ) ) { -
nexa-blocks/trunk/nexa-blocks.php
r3392899 r3395803 14 14 * @package NexaBlocks 15 15 */ 16 17 // IMPORTANT FIX: Prevent any processing on sitemap requests 18 if ( ! empty( $_SERVER['REQUEST_URI'] ) ) { 19 $request_uri = $_SERVER['REQUEST_URI']; 20 21 if ( strpos( $request_uri, 'sitemap' ) !== false || 22 strpos( $request_uri, '.xml' ) !== false || 23 strpos( $request_uri, 'xsl' ) !== false || 24 ( isset( $_GET['sitemap'] ) ) ) { 25 // Don't load Nexa Blocks on sitemap pages 26 return; 27 } 28 } 16 29 17 30 if ( ! defined( 'ABSPATH' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.