Skip to content

Commit

Permalink
Merge pull request #9 from yogeshnipane/update_version
Browse files Browse the repository at this point in the history
"minor changes"
  • Loading branch information
yogeshnipane committed Mar 9, 2016
2 parents 724a144 + 0fa5bde commit 34ed0b0
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions includes/class-ukuupeople.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,18 +366,20 @@ function custom_human_info( $edit , $slug ) {
$tab_filter = array();
// version dependent code
$plugin_info = get_plugins();
$plugin_exist = array_key_exists(UKUUGIVE_BASENAME,$plugin_info);
if ($plugin_exist){
require_once ABSPATH . 'wp-admin/includes/plugin.php';
$plugin_active = is_plugin_active(UKUUGIVE_BASENAME);
if ($plugin_active){
$plugin_version = $plugin_info[UKUUGIVE_BASENAME]['Version'];
if($plugin_version <= '1.0.2'){
$tab_filter['contribution'] =array(
'id' => 'donation-tab',
'action' => 'ukuugive_tab_view',
'icon' => 'ukuucontributions',
);
if(class_exists('UKUUGIVE')){
$plugin_exist = array_key_exists(UKUUGIVE_BASENAME,$plugin_info);
if ($plugin_exist){
require_once ABSPATH . 'wp-admin/includes/plugin.php';
$plugin_active = is_plugin_active(UKUUGIVE_BASENAME);
if ($plugin_active){
$plugin_version = $plugin_info[UKUUGIVE_BASENAME]['Version'];
if($plugin_version <= '1.0.2'){
$tab_filter['contribution'] =array(
'id' => 'donation-tab',
'action' => 'ukuugive_tab_view',
'icon' => 'ukuucontributions',
);
}
}
}
}
Expand Down

0 comments on commit 34ed0b0

Please sign in to comment.