|
@@ 129-132 (lines=4) @@
|
| 126 |
|
$table_name = $this->wpdb->prefix . 'timeshift_' . $post_type; |
| 127 |
|
$sql = "select * from $table_name where id=" . intval($_GET['timeshift']); |
| 128 |
|
$r = $this->wpdb->get_results($sql); |
| 129 |
|
if ($r && count($r) == 1) { |
| 130 |
|
$payload = unserialize($r[0]->post_payload); |
| 131 |
|
$this->timeshift_cached_meta = $payload->meta; |
| 132 |
|
} |
| 133 |
|
} |
| 134 |
|
// is the requested meta data in the stored snapshot |
| 135 |
|
if ($this->timeshift_cached_meta && isset($this->timeshift_cached_meta[$key])) { |
|
@@ 153-156 (lines=4) @@
|
| 150 |
|
$table_name = $this->wpdb->prefix . 'timeshift_' . $post->post_type; |
| 151 |
|
$sql = "select * from $table_name where id=" . intval($_GET['timeshift']); |
| 152 |
|
$r = $this->wpdb->get_results($sql); |
| 153 |
|
if ($r && count($r) == 1) { |
| 154 |
|
$payload = unserialize($r[0]->post_payload); |
| 155 |
|
$post = $payload->post; |
| 156 |
|
} |
| 157 |
|
} |
| 158 |
|
|
| 159 |
|
public function add_actions() |