|
@@ 1210-1211 (lines=2) @@
|
| 1207 |
|
public function modify_edit_post_link($link, $id, $context) |
| 1208 |
|
{ |
| 1209 |
|
$post = get_post($id); |
| 1210 |
|
if (! isset($this->_req_data['action']) |
| 1211 |
|
|| ! isset($this->_cpt_routes[ $this->_req_data['action'] ]) |
| 1212 |
|
|| $post->post_type !== $this->_cpt_routes[ $this->_req_data['action'] ] |
| 1213 |
|
) { |
| 1214 |
|
return $link; |
|
@@ 1240-1246 (lines=7) @@
|
| 1237 |
|
{ |
| 1238 |
|
$post = get_post($post_id); |
| 1239 |
|
|
| 1240 |
|
if (empty($this->_req_data['action']) |
| 1241 |
|
|| ! isset($this->_cpt_routes[ $this->_req_data['action'] ]) |
| 1242 |
|
|| ! $post instanceof WP_Post |
| 1243 |
|
|| $post->post_type !== $this->_cpt_routes[ $this->_req_data['action'] ] |
| 1244 |
|
) { |
| 1245 |
|
return $delete_link; |
| 1246 |
|
} |
| 1247 |
|
$this->_set_model_object($post->ID, true); |
| 1248 |
|
|
| 1249 |
|
// returns something like `trash_event` or `trash_attendee` or `trash_venue` |