PluginProbe
The WP Remote WordPress Plugin / 6.44
The WP Remote WordPress Plugin v6.44
6.72 6.69 6.65 6.62 6.48 6.47 4.87 4.97 5.05 5.09 5.16 5.22 5.24 5.25 5.38 5.41 5.42 5.45 5.47 5.53 5.56 5.65 5.68 5.72 5.73 All 53 releases
← All changes | callback/wings/db.php +4 -4 5.246.44 View file →
@@ -1,11 +1,11 @@
1 1 <?php
2 2
3 3 if (!defined('ABSPATH')) exit;
4 -if (!class_exists('BVDBCallback')) :
4 +if (!class_exists('WPRDBCallback')) :
5 5 require_once dirname( __FILE__ ) . '/../streams.php';
6 6
7 -class BVDBCallback extends BVCallbackBase {
7 +class WPRDBCallback extends WPRCallbackBase {
8 8 public $db;
9 9 public $stream;
10 10 public $account;
11 11 public $siteinfo;
@@ -106,9 +106,9 @@
106 106 }
107 107
108 108 $randomString = '';
109 109 for ($i = 0; $i < $bsize; $i++) {
110 - $randomString .= $characters[rand(0, $charactersLength - 1)];
110 + $randomString .= $characters[rand(0, $charactersLength - 1)]; // phpcs:ignore WordPress.WP.AlternativeFunctions.rand_rand
111 111 }
112 112
113 113 $this->stream->writeStream($randomString);
114 114 $totalSize -= $bsize;
@@ -181,9 +181,9 @@
181 181
182 182 public function process($request) {
183 183 $db = $this->db;
184 184 $params = $request->params;
185 - $stream_init_info = BVStream::startStream($this->account, $request);
185 + $stream_init_info = WPRStream::startStream($this->account, $request);
186 186
187 187 if (array_key_exists('stream', $stream_init_info)) {
188 188 $this->stream = $stream_init_info['stream'];
189 189 switch ($request->method) {