Skip to content

Instantly share code, notes, and snippets.

@abrahamvegh
Created December 11, 2009 15:08
Show Gist options
  • Save abrahamvegh/254251 to your computer and use it in GitHub Desktop.
Save abrahamvegh/254251 to your computer and use it in GitHub Desktop.
<?php
global $current_user;
(is_object($current_user) && isset($current_user->user_login)) ? $html = '<input type="hidden" name="current_user" value="' . $current_user->user_login . '" />' : $html = '' ;
$html. = '<input type="submit" value="' . esc_attr( $value ) . '"' . $atts . ' />';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment