| Conditions | 5 |
| Paths | 5 |
| Total Lines | 13 |
| Lines | 13 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function isMatchingRoute() |
||
| 25 | { |
||
| 26 | global $post; |
||
| 27 | return strpos($this->request->requestUri(), 'wp-admin/post.php') !== false |
||
| 28 | && ( |
||
| 29 | $this->request->getRequestParam('post_type', 'post') === 'post' |
||
| 30 | || ( |
||
| 31 | $post instanceof WP_Post |
||
|
|
|||
| 32 | && $post->post_type === 'post' |
||
| 33 | ) |
||
| 34 | ) |
||
| 35 | && $this->request->getRequestParam('action') === 'edit'; |
||
| 36 | } |
||
| 37 | } |
||
| 38 |