Merge pull request #5690 from BFTrick/parenthesis
Adding Brackets Around if Statement
This commit is contained in:
commit
4187a2465a
|
@ -6,7 +6,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
/**
|
/**
|
||||||
* WooCommerce Admin.
|
* WooCommerce Admin.
|
||||||
*
|
*
|
||||||
* @class WC_Admin
|
* @class WC_Admin
|
||||||
* @author WooThemes
|
* @author WooThemes
|
||||||
* @category Admin
|
* @category Admin
|
||||||
* @package WooCommerce/Admin
|
* @package WooCommerce/Admin
|
||||||
|
@ -102,8 +102,9 @@ class WC_Admin {
|
||||||
*/
|
*/
|
||||||
public function preview_emails() {
|
public function preview_emails() {
|
||||||
if ( isset( $_GET['preview_woocommerce_mail'] ) ) {
|
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' );
|
die( 'Security check' );
|
||||||
|
}
|
||||||
|
|
||||||
global $email_heading;
|
global $email_heading;
|
||||||
|
|
||||||
|
@ -121,4 +122,4 @@ class WC_Admin {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return new WC_Admin();
|
return new WC_Admin();
|
||||||
|
|
Loading…
Reference in New Issue