Skip to content

Commit

Permalink
Deploys: --skip-themes when updating WP template_root
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
fullyint committed Jul 20, 2017
1 parent 2ae7cf1 commit 7f55a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/deploy/hooks/finalize-after.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f55a1b

Please sign in to comment.