From 7f55a1b371df764a0686067cac8a7629606bd5b8 Mon Sep 17 00:00:00 2001 From: Phil Nelson Date: Thu, 20 Jul 2017 15:51:06 -0600 Subject: [PATCH] Deploys: --skip-themes when updating WP template_root Some WP themes may throw errors if loaded in this context, e.g., some PHP classes may not be available with `--skip-plugins`. It is not necessary to load themes when updating WP options for template_root and stylesheet root, so it is safer to `--skip-themes`. --- roles/deploy/hooks/finalize-after.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/deploy/hooks/finalize-after.yml b/roles/deploy/hooks/finalize-after.yml index 65b510e0b9..9201ee6aa6 100644 --- a/roles/deploy/hooks/finalize-after.yml +++ b/roles/deploy/hooks/finalize-after.yml @@ -12,7 +12,7 @@ when: project.update_db_on_deploy | default(update_db_on_deploy) - name: Get WP theme template root - command: wp option get template_root --skip-plugins + command: wp option get template_root --skip-plugins --skip-themes args: chdir: "{{ deploy_helper.current_path }}" register: wp_template_root