Skip to content

Commit

Permalink
Merge pull request #2 from belkincapital/develop
Browse files Browse the repository at this point in the history
Update wp-qore.php
  • Loading branch information
Jason Jersey committed Apr 17, 2015
2 parents 073199c + 0f73fee commit 1dec8b2
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion wp-qore.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: WP Qore
Plugin URI: http://wpqore.com/
Description: For WordPress Standalone and Multisite.
Version: 2.3
Version: 2.4
Author: Jason Jersey
Author URI: http://twitter.com/degersey
License: GNU GPL 3.0
Expand Down Expand Up @@ -160,3 +160,22 @@ function show_welcome_panel_on_multisite() {
if ( 0 == get_user_meta( $user_id, 'show_welcome_panel', true ) )
update_user_meta( $user_id, 'show_welcome_panel', 1 );
}

/**
* Add Login Confirm
*/
function psmu_login_confirm_notice() { ?>
<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
<script>
jQuery(document).ready( function($) {

$('#loginform p.submit input').click(function() {
return confirm('You are about to login. Do you wish to continue?');
});

});
</script>
<?php

}
add_action('login_head', 'psmu_login_confirm_notice');

0 comments on commit 1dec8b2

Please sign in to comment.