Skip to content

Instantly share code, notes, and snippets.

@lukecarbis
Created April 29, 2015 11:14
Show Gist options
  • Save lukecarbis/474ea9d6048fe47c2c71 to your computer and use it in GitHub Desktop.
Save lukecarbis/474ea9d6048fe47c2c71 to your computer and use it in GitHub Desktop.
Fix for wp_sitecategories doesn't exist in VIP Quickstart
<?php
// @see https://github.com/Automattic/vip-quickstart/issues/345
add_action( 'vip_loaded', function() {
$is_production = ( defined( '\WPCOM_IS_VIP_ENV' ) && \WPCOM_IS_VIP_ENV );
if ( ! $is_production ) {
wpcom_vip_disable_global_terms();
}
} );
@joshbetz
Copy link

joshbetz commented May 4, 2015

This will also disable global terms, which are enabled on VIP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment