Skip to content

Commit

Permalink
Issue #95: Don't modify update/install maintenance pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
quicksketch authored Aug 8, 2022
1 parent 0d7a701 commit bb87185
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions metatag.module
Original file line number Diff line number Diff line change
Expand Up @@ -2137,6 +2137,11 @@ function metatag_preprocess_page(&$variables) {
* @see metatag_preprocess_page().
*/
function metatag_preprocess_maintenance_page(&$variables) {
// Don't modify install or update pages.
if (defined('MAINTENANCE_MODE') && in_array(MAINTENANCE_MODE, array('install', 'update'))) {
return;
}

// Prepare all the tags, including doing token replacements.
$metatags = metatag_prepare_tags();
// Add each metatag to page header.
Expand Down

0 comments on commit bb87185

Please sign in to comment.