Skip to content

Commit 369b2df

Browse files
authored
Merge pull request #41 from pad52/master
Added condition to avoid conflicts between TGMPA plugins
2 parents 848ac3c + b917a07 commit 369b2df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

inc/class-tgm-plugin-activation.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1924,6 +1924,7 @@ function load_tgm_plugin_activation() {
19241924
* @param array $plugins An array of plugin arrays.
19251925
* @param array $config Optional. An array of configuration values.
19261926
*/
1927+
if ( ! function_exists('tgmpa') ) {
19271928
function tgmpa( $plugins, $config = array() ) {
19281929
$instance = call_user_func( array( get_class( $GLOBALS['shapely'] ), 'get_instance' ) );
19291930

@@ -1950,6 +1951,7 @@ function tgmpa( $plugins, $config = array() ) {
19501951
call_user_func( array( $instance, 'config' ), $config );
19511952
}
19521953
}
1954+
}
19531955
}
19541956

19551957
/**

0 commit comments

Comments
 (0)