PluginProbe
The WP Remote WordPress Plugin / 4.79
The WP Remote WordPress Plugin v4.79
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 | wp_db.php +2 -21 5.724.79 View file →
@@ -48,9 +48,8 @@
48 48 $tables = $this->getResult("SHOW TABLES", ARRAY_N);
49 49 return array_map(array($this, 'tableName'), $tables);
50 50 }
51 51
52 -
53 52 public function showTableStatus() {
54 53 return $this->getResult("SHOW TABLE STATUS");
55 54 }
56 55
@@ -57,24 +56,11 @@
57 56 public function tableKeys($table) {
58 57 return $this->getResult("SHOW KEYS FROM $table;");
59 58 }
60 59
61 - public function showDbVariables($variable) {
62 - $variables = $this->getResult("Show variables like '%$variable%' ;");
63 - $result = array();
64 - foreach ($variables as $variable) {
65 - $result[$variable["Variable_name"]] = $variable["Value"];
66 - }
67 - return $result;
68 - }
69 -
70 60 public function describeTable($table) {
71 61 return $this->getResult("DESCRIBE $table;");
72 62 }
73 -
74 - public function showTableIndex($table) {
75 - return $this->getResult("SHOW INDEX FROM $table");
76 - }
77 63
78 64 public function checkTable($table, $type) {
79 65 return $this->getResult("CHECK TABLE $table $type;");
80 66 }
@@ -213,14 +199,8 @@
213 199 global $wpdb;
214 200 $table = $this->getBVTable($name);
215 201 return $wpdb->replace($table, $value);
216 202 }
217 -
218 - public function insertIntoBVTable($name, $value) {
219 - global $wpdb;
220 - $table = $this->getBVTable($name);
221 - return $wpdb->insert($table, $value);
222 - }
223 203
224 204 public function tinfo($name) {
225 205 $result = array();
226 206 $table = $this->getBVTable($name);
@@ -235,8 +215,9 @@
235 215 return $result;
236 216 }
237 217
238 218 public function getMysqlVersion() {
239 - return $this->showDbVariables('version')['version'];
219 + global $wpdb;
220 + return $wpdb->db_version();
240 221 }
241 222 }
242 223 endif;