Clean up admin.class.php PHPcs complaints
This commit is contained in:
@ -63,6 +63,10 @@ Please do not contact me with questions like this. If you cannot be descriptive
|
||||
|
||||
## Changelog
|
||||
|
||||
### 3.6.4
|
||||
* Fixed denial redirects. [Issue #28](https://github.com/JayWood/content-warning-v3/issues/28)
|
||||
* Passified all PHPcs complaints
|
||||
|
||||
### 3.6.3
|
||||
* Category fix, fixes [#18](https://github.com/JayWood/content-warning-v3/issues/18)
|
||||
* Alphabetize method names, because why not!?
|
||||
|
@ -80,7 +80,7 @@ class CWV3Admin {
|
||||
wp_nonce_field( plugin_basename( __FILE__ ), 'cwv3_meta' );
|
||||
$curval = get_post_meta( $post->ID, 'cwv3_auth', true );
|
||||
$sw = get_option( 'cwv3_sitewide' );
|
||||
$disabled = $sw[0] == 'enabled' ? true : false;
|
||||
$disabled = 'enabled' == $sw[0] ? true : false;
|
||||
?>
|
||||
|
||||
<label for="cwv3_auth"><?php _e( 'Use authorization for this content', 'cwv3' ); ?>:</label>
|
||||
|
@ -4,7 +4,7 @@ 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
|
||||
*/
|
||||
|
@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
||||
Tags: warning, message, lading page, front page, enter page, adult content, consent, age verification, validation
|
||||
Requires at least: 3.5
|
||||
Tested up to: 4.0
|
||||
Stable tag: 3.6.3
|
||||
Stable tag: 3.6.4
|
||||
|
||||
A plugin that provides a warning box with a ton more options completely re-written from the ground up.
|
||||
== Description ==
|
||||
@ -81,6 +81,10 @@ Please do not contact me with questions like this. If you cannot be descriptive
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 3.6.4 =
|
||||
* Fixed denial redirects. [Issue #28](https://github.com/JayWood/content-warning-v3/issues/28)
|
||||
* Passified all PHPcs complaints
|
||||
|
||||
= 3.6.3 =
|
||||
* Category fix, fixes [#18](https://github.com/JayWood/content-warning-v3/issues/18)
|
||||
* Alphabetize method names, because why not!?
|
||||
|
Reference in New Issue
Block a user