Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: browserid.php
- ===================================================================
- --- browserid.php (revision 550258)
- +++ browserid.php (working copy)
- @@ -110,15 +110,14 @@
- self::Check_assertion();
- // Enqueue BrowserID scripts
- - wp_enqueue_script('browserid', 'https://browserid.org/include.js');
- - wp_enqueue_script('browserid_login', plugins_url('login.js', __FILE__), array('browserid'));
- + wp_register_script('browserid', 'https://browserid.org/include.js',array(),"",true);
- + wp_register_script('browserid_login', plugins_url('login.js', __FILE__), array('browserid'),"",true);
- // Prepare for comments and bbPress
- $options = get_option('browserid_options');
- if ((isset($options['browserid_comments']) && $options['browserid_comments']) ||
- (isset($options['browserid_bbpress']) && $options['browserid_bbpress'])) {
- - wp_enqueue_script('jquery');
- - wp_enqueue_script('browserid_comments', plugins_url('comments.js', __FILE__), array('jquery', 'browserid'));
- + wp_enqueue_script('browserid_comments', plugins_url('comments.js', __FILE__), array('jquery', 'browserid'),"",true);
- }
- }
- @@ -433,6 +432,7 @@
- // Build HTML for login/out button/link
- function Get_loginout_html($check_login = true) {
- // Get options
- + wp_enqueue_script('browserid_login');
- $options = get_option('browserid_options');
- if ($check_login && is_user_logged_in()) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement