PluginProbe
Patchstack – WordPress & Plugins Security / 2.2.7
Patchstack – WordPress & Plugins Security v2.2.7
2.3.7 trunk 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.17 2.1.18 2.1.19 2.1.2 2.1.20 2.1.21 2.1.22 2.1.23 2.1.24 2.1.25 2.1.3 2.1.4 2.1.5 2.1.6 All 49 releases
← All changes | includes/event-log.php +4 -4 2.1.212.2.7 View file →
@@ -27,9 +27,9 @@
27 27 return;
28 28 }
29 29
30 30 // Include all the different event loggers.
31 - foreach ( array( 'posts', 'plugins', 'core', 'options', 'users', 'comments', 'attachment' ) as $event ) {
31 + foreach ( [ 'posts', 'plugins', 'core', 'options', 'users', 'comments', 'attachment' ] as $event ) {
32 32 require_once dirname( __FILE__ ) . '/events/' . $event . '.php';
33 33 $class = 'P_Event_' . ucfirst( $event );
34 34 new $class();
35 35 }
@@ -67,9 +67,9 @@
67 67 // Insert into the logs.
68 68 global $wpdb;
69 69 $wpdb->insert(
70 70 $wpdb->prefix . 'patchstack_event_log',
71 - array(
71 + [
72 72 'author' => $author,
73 73 'ip' => $this->get_ip(),
74 74 'object' => isset( $args['object'] ) ? $args['object'] : '',
75 75 'object_id' => isset( $args['object_id'] ) ? (int) $args['object_id'] : '',
@@ -76,10 +76,10 @@
76 76 'action' => isset( $args['action'] ) ? $args['action'] : '',
77 77 'object_name' => isset( $args['object_name'] ) ? $args['object_name'] : '',
78 78 'date' => current_time( 'mysql' ),
79 79 'flag' => '',
80 - ),
81 - array( '%s', '%s', '%s', '%d', '%s', '%s', '%s' )
80 + ],
81 + [ '%s', '%s', '%s', '%d', '%s', '%s', '%s' ]
82 82 );
83 83 }
84 84 }
85 85 }