Skip to content

Commit

Permalink
Wrap wpsight_taxonomies() in function_exists()
Browse files Browse the repository at this point in the history
Avoid fatal erros when activating different versions of some themes and
WPCasa 1.0.3
  • Loading branch information
Simon Rimkus committed Jan 11, 2016
1 parent 4a91d5a commit e07d294
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions wpcasa/functions/wpsight-helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ function wpsight_post_type() {
*
* @since 1.0.0
*/
function wpsight_taxonomies( $output = 'objects' ) {
return WPSight_Helpers::taxonomies( $output );
if( ! function_exists( 'wpsight_taxonomies' ) ) {

function wpsight_taxonomies( $output = 'objects' ) {
return WPSight_Helpers::taxonomies( $output );
}

}

/**
Expand Down

0 comments on commit e07d294

Please sign in to comment.