[Plugin: Social Share Buttons for WordPress] Don`t clean header in plugin
-
I like the plugin. Note for loading java in header. Some admin blocked odnoklasniki or Vkontakte then site is not available for a long time.
And I propose add some code to function “add_head” in share-buttons-scripts.php.
Change are
Line 115: if(in_array(‘googleplus’,$this->btnsort)&&(in_array(‘googleplus’,$this->buttons_show))) {
Line 120: if(in_array(‘vkontakte’,$this->btnsort)&&(in_array(‘vkontakte’,$this->buttons_show))) {
Line 124: if(in_array(‘vkontakte’,$this->like_btnsort)&&(in_array(‘vkontakte’,$this->like_btnshow))) {
Line 129: if(in_array(‘odnoklassniki’,$this->btnsort)&&(in_array(‘odnoklassniki’,$this->buttons_show))) {
Line 137: if(in_array(‘mailru’,$this->btnsort)&&(in_array(‘mailru’,$this->buttons_show))) {
Line 142: if(in_array(‘facebook’,$this->btnsort)&&(in_array(‘facebook’,$this->buttons_show))) {
Line 147: if(in_array(‘twitter’,$this->btnsort)&&(in_array(‘twitter’,$this->buttons_show))) {
Line 151: if(in_array(‘googlebuzz’,$this->btnsort)&&(in_array(‘googlebuzz’,$this->buttons_show))) {
I think if the skip button, you need to optimize the loading of scripts. Sorry, for my English.
- The topic ‘[Plugin: Social Share Buttons for WordPress] Don`t clean header in plugin’ is closed to new replies.