PluginProbe
Social Share Buttons / 1.2
Social Share Buttons v1.2
trunk 0.9 1.0 1.1 1.1.1 1.1.2 1.10 1.11 1.12 1.15 1.16 1.17 1.18 1.19 1.2 1.20 1.3 1.30 1.4 1.5 1.6 1.7 1.8 1.9
← All changes | classes/class-admin.php +8 -4 1.41.2 View file →
@@ -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