| @@ -108,10 +108,8 @@ | ||
| 108 | 108 | // set active networks. Support doubles. |
| 109 | 109 | foreach($active_networks as $index => $network_name) |
| 110 | 110 | { |
| 111 | 111 | $network = mbSocial()->networks()->get($network_name); |
| 112 | - if (! is_object($network)) // could be removed network. | |
| 113 | - continue; | |
| 114 | 112 | if ($network->get('is_active')) |
| 115 | 113 | $selected[$index] = $network; |
| 116 | 114 | } |
| 117 | 115 | |
| @@ -126,8 +124,15 @@ | ||
| 126 | 124 | { |
| 127 | 125 | $priority = 'selected'; |
| 128 | 126 | } |
| 129 | 127 | |
| 128 | + | |
| 129 | + /* if ($priority == 'selected') | |
| 130 | + { | |
| 131 | + continue; // ignore active, since it's set earlier. | |
| 132 | + //$selected[$is_active] = $network; | |
| 133 | + | |
| 134 | + } */ | |
| 130 | 135 | if ($priority == 'unselected') |
| 131 | 136 | $unselected[] = $network; |
| 132 | 137 | if ($priority == 'readmore') |
| 133 | 138 | $readmore[] = $network; |
| @@ -265,10 +270,9 @@ | ||
| 265 | 270 | if ($display_review) |
| 266 | 271 | { |
| 267 | 272 | add_action( 'admin_notices', array( $this, 'mbsocial_review_notice')); |
| 268 | 273 | // registered in admin scripts |
| 269 | - if (method_exists(MB(), 'load_library')) | |
| 270 | - MB()->load_library('review_notice'); | |
| 274 | + MB()->load_library('review_notice'); | |
| 271 | 275 | } |
| 272 | 276 | |
| 273 | 277 | } |
| 274 | 278 | |