Skip to content

Commit

Permalink
Update wp-graphql-yoast-seo.php
Browse files Browse the repository at this point in the history
Allow override of WPADMIN_HOST and WWW_HOST in wp-config.php
  • Loading branch information
snibbo71 authored Sep 27, 2021
1 parent 845d18b commit c8359dc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions wp-graphql-yoast-seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@
/* Switch the URLs in schema from this host, to the deployment host so that gatsby-source-wordpress will
* not nobble the URLs
*/
define('WP_ADMIN_HOST', 'wpadmin');
define('WWW_HOST', 'www');
if ( !defined('WP_ADMIN_HOST') ) {
define('WP_ADMIN_HOST', 'wpadmin');
}
if ( !defined('WWW_HOST') ) {
define('WWW_HOST', 'www');
}

if (!defined('ABSPATH')) {
exit();
Expand Down

0 comments on commit c8359dc

Please sign in to comment.