Changeset 3460430
- Timestamp:
- 02/13/2026 12:53:54 AM (6 weeks ago)
- Location:
- planned-outage
- Files:
-
- 3 added
- 2 edited
-
tags/1.2.1 (added)
-
tags/1.2.1/planned-outage.php (added)
-
tags/1.2.1/readme.txt (added)
-
trunk/planned-outage.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
planned-outage/trunk/planned-outage.php
r3459135 r3460430 5 5 * Requires at least: 6.3 6 6 * Requires PHP: 7.0 7 * Version: 1.2. 07 * Version: 1.2.1 8 8 * Author: Troy Chaplin 9 9 * License: GPL-2.0-or-later … … 459 459 } 460 460 461 // Override the block template globals so WordPress renders the maintenance 462 // template content instead of the resolved homepage template. 461 463 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- WordPress core global. 462 global $_wp_current_template_content ;464 global $_wp_current_template_content, $_wp_current_template_id, $wp_query; 463 465 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- WordPress core global. 464 466 $_wp_current_template_content = $maintenance_template->content; 467 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- WordPress core global. 468 $_wp_current_template_id = $maintenance_template->id; 469 470 // Reset query flags so get_the_block_template_html() does not enter the 471 // singular post loop which would set up the homepage post data. 472 $wp_query->is_singular = false; 473 $wp_query->is_page = false; 474 $wp_query->is_home = false; 475 $wp_query->is_front_page = false; 465 476 466 477 return wp_normalize_path( ABSPATH . 'wp-includes/template-canvas.php' ); -
planned-outage/trunk/readme.txt
r3459135 r3460430 5 5 Requires at least: 6.3 6 6 Tested up to: 6.9 7 Stable tag: 1.2. 07 Stable tag: 1.2.1 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 90 90 * Added no-cache headers on all bypass responses to prevent reverse proxy cache poisoning 91 91 * Fixed bypass link, logged-in user, and bot responses poisoning server-level caches 92 * Fixed maintenance template not rendering when a static front page is set in Settings > Reading 92 93 93 94 = 1.1.0 =
Note: See TracChangeset
for help on using the changeset viewer.