Move WC_Email docblock and add class exists check

Closes #7399
This commit is contained in:
Mike Jolley 2015-02-13 16:54:12 +00:00
parent ea56cce2dc
commit 35a3de03d5
1 changed files with 11 additions and 5 deletions

View File

@ -1,9 +1,4 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* Email Class
*
@ -15,6 +10,17 @@ if ( ! defined( 'ABSPATH' ) ) {
* @author WooThemes
* @extends WC_Settings_API
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( class_exists( 'WC_Email' ) ) {
return;
}
/**
* WC_Email
*/
class WC_Email extends WC_Settings_API {
/**