| @@ -11,12 +11,10 @@ | ||
| 11 | 11 | public function get( $k = NULL ) |
| 12 | 12 | { |
| 13 | 13 | if( ! empty($_POST) ){ |
| 14 | 14 | $nonce = isset( $_REQUEST['hc_nonce'] ) ? $_REQUEST['hc_nonce'] : ''; |
| 15 | - if( function_exists('wp_verify_nonce') ){ | |
| 16 | - if( ! wp_verify_nonce( $nonce, 'shiftcontroller' ) ){ | |
| 17 | - die( 'Security check failed' ); | |
| 18 | - } | |
| 15 | + if( ! wp_verify_nonce( $nonce, 'shiftcontroller' ) ){ | |
| 16 | + die( 'Security check failed' ); | |
| 19 | 17 | } |
| 20 | 18 | } |
| 21 | 19 | |
| 22 | 20 | $return = array(); |
| @@ -60,9 +58,9 @@ | ||
| 60 | 58 | |
| 61 | 59 | protected function _cleanInputKeys( $str ) |
| 62 | 60 | { |
| 63 | 61 | if ( ! preg_match("/^[a-z0-9:_\/\-\~]+$/i", $str)){ |
| 64 | - exit('Disallowed Key Characters on: ' . '"' . esc_html($str) . '"' . '<br>'); | |
| 62 | + exit('Disallowed Key Characters on: ' . '"' . $str . '"' . '<br>'); | |
| 65 | 63 | } |
| 66 | 64 | return $str; |
| 67 | 65 | } |
| 68 | 66 | |