PluginProbe
WP Coder – Insert & Manage Code Snippets / 3.5
WP Coder – Insert & Manage Code Snippets v3.5
4.5.1 1.1 2.3.1 2.3.2 2.4.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 3.2 3.2.1 3.3 3.4 3.5 3.5.1 All 39 releases
← All changes | classes/Publisher/Conditions.php +2 -2 4.5.13.5 View file →
@@ -1,9 +1,8 @@
1 1 <?php
2 2
3 3 namespace WPCoder\Publisher;
4 4
5 -
6 5 defined( 'ABSPATH' ) || exit;
7 6
8 7 class Conditions {
9 8
@@ -11,9 +10,8 @@
11 10 $param = ! empty( $result->param ) ? maybe_unserialize( $result->param ) : [];
12 11 $check = [
13 12 'status' => self::status( $result->status ),
14 13 'mode' => self::mode( $result->mode ),
15 -
16 14 ];
17 15
18 16 if ( in_array( false, $check, true ) ) {
19 17 return false;
@@ -29,5 +27,7 @@
29 27
30 28 private static function mode( $mode ): bool {
31 29 return empty( $mode ) || current_user_can( 'administrator' );
32 30 }
31 +
32 +
33 33 }