Clean up admin.class.php PHPcs complaints

This commit is contained in:
Jay Wood
2015-08-28 20:45:54 -04:00
parent 3887dc2e38
commit bd6f5fe6ef
4 changed files with 25 additions and 17 deletions

View File

@ -4,15 +4,15 @@ Plugin Name: Content Warning v2
Plugin URI: http://plugish.com/plugins/content-warning-v3
Description: A plugin based on my v2 code, while drastically deviating from the original. Used mainly for NSFW websites, this plugin provides a dialog popup to warn viewers of it's possible content.
Author: Jerry Wood Jr.
Version: 3.6.3
Version: 3.6.4
Author URI: http://plugish.com
Text Domain: cwv3
*/
require_once dirname( __FILE__ ) . '/inc/api.php';
if ( is_admin() ){
if ( is_admin() ) {
require_once dirname( __FILE__ ) . '/inc/options.inc.php';
if ( ! class_exists( 'JW_SIMPLE_OPTIONS' ) ){
if ( ! class_exists( 'JW_SIMPLE_OPTIONS' ) ) {
require_once dirname( __FILE__ ) . '/lib/jw_simple_options/simple_options.php';
}
require_once dirname( __FILE__ ) . '/class/admin.class.php';
@ -24,7 +24,7 @@ if ( is_admin() ){
}
add_action( 'plugins_loaded', 'jw_cwv3_load_text_domain' );
function jw_cwv3_load_text_domain(){
function jw_cwv3_load_text_domain() {
load_plugin_textdomain( 'cwv3', false, dirname( plugin_basename( __FILE__ ) ) . '/lang' );
}