Plugin Directory

Changeset 3460430


Ignore:
Timestamp:
02/13/2026 12:53:54 AM (6 weeks ago)
Author:
areziaal
Message:

Version 1.2.1

Location:
planned-outage
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • planned-outage/trunk/planned-outage.php

    r3459135 r3460430  
    55 * Requires at least: 6.3
    66 * Requires PHP:      7.0
    7  * Version:           1.2.0
     7 * Version:           1.2.1
    88 * Author:            Troy Chaplin
    99 * License:           GPL-2.0-or-later
     
    459459        }
    460460
     461        // Override the block template globals so WordPress renders the maintenance
     462        // template content instead of the resolved homepage template.
    461463        // 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;
    463465        // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- WordPress core global.
    464466        $_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;
    465476
    466477        return wp_normalize_path( ABSPATH . 'wp-includes/template-canvas.php' );
  • planned-outage/trunk/readme.txt

    r3459135 r3460430  
    55Requires at least: 6.3
    66Tested up to: 6.9
    7 Stable tag: 1.2.0
     7Stable tag: 1.2.1
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    9090* Added no-cache headers on all bypass responses to prevent reverse proxy cache poisoning
    9191* 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
    9293
    9394= 1.1.0 =
Note: See TracChangeset for help on using the changeset viewer.