PluginProbe
Social Share Buttons / 1.5
Social Share Buttons v1.5
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 +4 -8 1.21.5 View file →
@@ -108,8 +108,10 @@
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;
112 114 if ($network->get('is_active'))
113 115 $selected[$index] = $network;
114 116 }
115 117
@@ -124,15 +126,8 @@
124 126 {
125 127 $priority = 'selected';
126 128 }
127 129
128 -
129 - /* if ($priority == 'selected')
130 - {
131 - continue; // ignore active, since it's set earlier.
132 - //$selected[$is_active] = $network;
133 -
134 - } */
135 130 if ($priority == 'unselected')
136 131 $unselected[] = $network;
137 132 if ($priority == 'readmore')
138 133 $readmore[] = $network;
@@ -270,9 +265,10 @@
270 265 if ($display_review)
271 266 {
272 267 add_action( 'admin_notices', array( $this, 'mbsocial_review_notice'));
273 268 // registered in admin scripts
274 - MB()->load_library('review_notice');
269 + if (method_exists(MB(), 'load_library'))
270 + MB()->load_library('review_notice');
275 271 }
276 272
277 273 }
278 274