i dont really understand why the check if the nonce function exists before running it ...
if ( function_exists('wp_nonce_field') )
wp_nonce_field('gmp_nonce_check');
i understand its for backwards compatibility ...
Also notice how you are verifying that the
wp_nonce_fieldfunction exists before trying to call it for backward compatibility
but wont it break anyway if on post back i check
if ( isset($_POST['submit']) ) {
check_admin_referer('gmp_nonce_check');