enable or disable JavaScript SDK
-
In many wordpress plugins is duplicated the JavaScript SDK
It’s possible to turn on or off the inclusion of this item in wppa-non-admin.php:
/* FACEBOOK COMMENTS */ function wppa_fbc_setup() { $wppa_app_id = ''; $wppa_lang = get_locale(); if ( ! $wppa_lang ) $wppa_lang = 'en_US'; ?> <!-- Facebook Comments for WPPA+ --> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/<?php echo $wppa_lang; ?>/all.js#xfbml=1&appId=<?php echo $wppa_app_id; ?>"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script>
in case the user has already loaded by another plugin?
I at the time I solved deleting it.
Bye
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘enable or disable JavaScript SDK’ is closed to new replies.