From 089a000002647df0fef1b4c06b4eae8793c5dee2 Mon Sep 17 00:00:00 2001 From: atsaruk Date: Wed, 21 Feb 2024 14:27:44 +0100 Subject: [PATCH 1/6] debug qa --- environments/qa/wp-config-local.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/environments/qa/wp-config-local.php b/environments/qa/wp-config-local.php index 6339fa7..f740488 100644 --- a/environments/qa/wp-config-local.php +++ b/environments/qa/wp-config-local.php @@ -15,6 +15,12 @@ define('LAWCARTA_ENVIRONMENT_NAME', 'qa'); define('LC_ALLOW_COOKIE_POPUP', true); define('LC_GTM', 'GTM-KXTRR4Q'); + +define( 'WP_DEBUG', true); +define( 'SCRIPT_DEBUG', true); +define( 'WP_DEBUG_LOG', true); + + $_SERVER['HTTPS'] = 'On'; //S3 uploads settings From b03a55b70e3f7fffce0a2ef941586c6e6c2c35ca Mon Sep 17 00:00:00 2001 From: atsaruk Date: Wed, 21 Feb 2024 15:08:56 +0100 Subject: [PATCH 2/6] debug.qa. not to prod --- htdocs/wp-content/themes/lawcarta/header.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/wp-content/themes/lawcarta/header.php b/htdocs/wp-content/themes/lawcarta/header.php index 1c083ed..3044518 100644 --- a/htdocs/wp-content/themes/lawcarta/header.php +++ b/htdocs/wp-content/themes/lawcarta/header.php @@ -125,6 +125,7 @@ height="0" width="0" style="display:none;visibility:hidden"> get_queried_object() ); + var_dump($the_page); $slug = $the_page->post_name; if ($slug != 'publish-your-book'):?>
From bc4149145c2292d9019667db42de6e2aae991937 Mon Sep 17 00:00:00 2001 From: atsaruk Date: Wed, 21 Feb 2024 15:11:28 +0100 Subject: [PATCH 3/6] Revert "debug.qa. not to prod" This reverts commit b03a55b70e3f7fffce0a2ef941586c6e6c2c35ca. --- htdocs/wp-content/themes/lawcarta/header.php | 1 - 1 file changed, 1 deletion(-) diff --git a/htdocs/wp-content/themes/lawcarta/header.php b/htdocs/wp-content/themes/lawcarta/header.php index 3044518..1c083ed 100644 --- a/htdocs/wp-content/themes/lawcarta/header.php +++ b/htdocs/wp-content/themes/lawcarta/header.php @@ -125,7 +125,6 @@ height="0" width="0" style="display:none;visibility:hidden"> get_queried_object() ); - var_dump($the_page); $slug = $the_page->post_name; if ($slug != 'publish-your-book'):?>
From e89a89241088bc3b9bc6a56453003a7d309c4cd2 Mon Sep 17 00:00:00 2001 From: atsaruk Date: Wed, 21 Feb 2024 16:19:10 +0100 Subject: [PATCH 4/6] debug.qa. not to prod --- htdocs/wp-content/themes/lawcarta/header.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/wp-content/themes/lawcarta/header.php b/htdocs/wp-content/themes/lawcarta/header.php index 1c083ed..0899697 100644 --- a/htdocs/wp-content/themes/lawcarta/header.php +++ b/htdocs/wp-content/themes/lawcarta/header.php @@ -123,7 +123,11 @@ height="0" width="0" style="display:none;visibility:hidden">
+
     get_queried_object() );
     $slug = $the_page->post_name;
     if ($slug != 'publish-your-book'):?>

From 84007c29261046ba80725b18ddb71b237f21da06 Mon Sep 17 00:00:00 2001
From: atsaruk 
Date: Wed, 21 Feb 2024 19:24:48 +0100
Subject: [PATCH 5/6] Revert "debug.qa. not to prod"

This reverts commit e89a89241088bc3b9bc6a56453003a7d309c4cd2.
---
 htdocs/wp-content/themes/lawcarta/header.php | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/htdocs/wp-content/themes/lawcarta/header.php b/htdocs/wp-content/themes/lawcarta/header.php
index 0899697..1c083ed 100644
--- a/htdocs/wp-content/themes/lawcarta/header.php
+++ b/htdocs/wp-content/themes/lawcarta/header.php
@@ -123,11 +123,7 @@ height="0" width="0" style="display:none;visibility:hidden">
 
 
-
     get_queried_object() );
     $slug = $the_page->post_name;
     if ($slug != 'publish-your-book'):?>

From 47496ed5c49ff61acc5a62bc7de17fb85df3d90e Mon Sep 17 00:00:00 2001
From: atsaruk 
Date: Thu, 22 Feb 2024 12:57:01 +0100
Subject: [PATCH 6/6] LAW-7564

---
 htdocs/wp-content/themes/lawcarta/functions.php | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/htdocs/wp-content/themes/lawcarta/functions.php b/htdocs/wp-content/themes/lawcarta/functions.php
index 53ef50d..d083905 100644
--- a/htdocs/wp-content/themes/lawcarta/functions.php
+++ b/htdocs/wp-content/themes/lawcarta/functions.php
@@ -94,12 +94,6 @@ add_filter('wp_setup_nav_menu_item', function ($menu_item)
     return $menu_item;
 });
 
-add_action('init','add_lctc_val');
-function add_lctc_val() {
-    global $wp;
-    $wp->add_query_var('lctc');
-}
-
 function get_canonocal_url() {
     $uri = explode('?', $_SERVER['REQUEST_URI']);
     if (isset($uri[1])) {