Merge pull request #5690 from BFTrick/parenthesis

Adding Brackets Around if Statement
This commit is contained in:
Mike Jolley 2014-06-18 16:14:41 +01:00
commit 4187a2465a
1 changed files with 4 additions and 3 deletions

View File

@ -102,8 +102,9 @@ class WC_Admin {
*/
public function preview_emails() {
if ( isset( $_GET['preview_woocommerce_mail'] ) ) {
if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'preview-mail') )
if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'preview-mail') ) {
die( 'Security check' );
}
global $email_heading;