PluginProbe
WP Coder – Insert & Manage Code Snippets / trunk
WP Coder – Insert & Manage Code Snippets vtrunk
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 3.2trunk View file →
@@ -1,8 +1,9 @@
1 1 <?php
2 2
3 3 namespace WPCoder\Publisher;
4 4
5 +
5 6 defined( 'ABSPATH' ) || exit;
6 7
7 8 class Conditions {
8 9
@@ -10,8 +11,9 @@
10 11 $param = ! empty( $result->param ) ? maybe_unserialize( $result->param ) : [];
11 12 $check = [
12 13 'status' => self::status( $result->status ),
13 14 'mode' => self::mode( $result->mode ),
15 +
14 16 ];
15 17
16 18 if ( in_array( false, $check, true ) ) {
17 19 return false;
@@ -27,7 +29,5 @@
27 29
28 30 private static function mode( $mode ): bool {
29 31 return empty( $mode ) || current_user_can( 'administrator' );
30 32 }
31 -
32 -
33 33 }