@@ -14,15 +14,15 @@ |
||
14 | 14 | */ |
15 | 15 | class WordPressPostsEditorAddNew extends RouteMatchSpecification |
16 | 16 | { |
17 | - /** |
|
18 | - * returns true if current request matches specification |
|
19 | - * |
|
20 | - * @since 4.9.71.p |
|
21 | - * @return boolean |
|
22 | - */ |
|
23 | - public function isMatchingRoute() |
|
24 | - { |
|
25 | - return strpos($this->request->requestUri(), 'wp-admin/post-new.php') !== false |
|
26 | - && $this->request->getRequestParam('post_type', 'post') === 'post'; |
|
27 | - } |
|
17 | + /** |
|
18 | + * returns true if current request matches specification |
|
19 | + * |
|
20 | + * @since 4.9.71.p |
|
21 | + * @return boolean |
|
22 | + */ |
|
23 | + public function isMatchingRoute() |
|
24 | + { |
|
25 | + return strpos($this->request->requestUri(), 'wp-admin/post-new.php') !== false |
|
26 | + && $this->request->getRequestParam('post_type', 'post') === 'post'; |
|
27 | + } |
|
28 | 28 | } |
@@ -14,15 +14,15 @@ |
||
14 | 14 | */ |
15 | 15 | class WordPressPostsListTable extends RouteMatchSpecification |
16 | 16 | { |
17 | - /** |
|
18 | - * returns true if current request matches specification |
|
19 | - * |
|
20 | - * @since 4.9.71.p |
|
21 | - * @return boolean |
|
22 | - */ |
|
23 | - public function isMatchingRoute() |
|
24 | - { |
|
25 | - return strpos($this->request->requestUri(), 'wp-admin/edit.php') !== false |
|
26 | - && $this->request->getRequestParam('post_type', 'post') === 'post'; |
|
27 | - } |
|
17 | + /** |
|
18 | + * returns true if current request matches specification |
|
19 | + * |
|
20 | + * @since 4.9.71.p |
|
21 | + * @return boolean |
|
22 | + */ |
|
23 | + public function isMatchingRoute() |
|
24 | + { |
|
25 | + return strpos($this->request->requestUri(), 'wp-admin/edit.php') !== false |
|
26 | + && $this->request->getRequestParam('post_type', 'post') === 'post'; |
|
27 | + } |
|
28 | 28 | } |
@@ -15,23 +15,23 @@ |
||
15 | 15 | */ |
16 | 16 | class WordPressPageEditorEdit extends RouteMatchSpecification |
17 | 17 | { |
18 | - /** |
|
19 | - * returns true if current request matches specification |
|
20 | - * |
|
21 | - * @since 4.9.71.p |
|
22 | - * @return boolean |
|
23 | - */ |
|
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') === 'page' |
|
30 | - || ( |
|
31 | - $post instanceof WP_Post |
|
32 | - && $post->post_type === 'page' |
|
33 | - ) |
|
34 | - ) |
|
35 | - && $this->request->getRequestParam('action') === 'edit'; |
|
36 | - } |
|
18 | + /** |
|
19 | + * returns true if current request matches specification |
|
20 | + * |
|
21 | + * @since 4.9.71.p |
|
22 | + * @return boolean |
|
23 | + */ |
|
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') === 'page' |
|
30 | + || ( |
|
31 | + $post instanceof WP_Post |
|
32 | + && $post->post_type === 'page' |
|
33 | + ) |
|
34 | + ) |
|
35 | + && $this->request->getRequestParam('action') === 'edit'; |
|
36 | + } |
|
37 | 37 | } |
@@ -14,15 +14,15 @@ |
||
14 | 14 | */ |
15 | 15 | class EspressoEventEditorEdit extends RouteMatchSpecification |
16 | 16 | { |
17 | - /** |
|
18 | - * returns true if current request matches specification |
|
19 | - * |
|
20 | - * @since 4.9.71.p |
|
21 | - * @return boolean |
|
22 | - */ |
|
23 | - public function isMatchingRoute() |
|
24 | - { |
|
25 | - return $this->request->getRequestParam('page') === 'espresso_events' |
|
26 | - && $this->request->getRequestParam('action') === 'edit'; |
|
27 | - } |
|
17 | + /** |
|
18 | + * returns true if current request matches specification |
|
19 | + * |
|
20 | + * @since 4.9.71.p |
|
21 | + * @return boolean |
|
22 | + */ |
|
23 | + public function isMatchingRoute() |
|
24 | + { |
|
25 | + return $this->request->getRequestParam('page') === 'espresso_events' |
|
26 | + && $this->request->getRequestParam('action') === 'edit'; |
|
27 | + } |
|
28 | 28 | } |
@@ -14,15 +14,15 @@ |
||
14 | 14 | */ |
15 | 15 | class EspressoEventEditorAddNew extends RouteMatchSpecification |
16 | 16 | { |
17 | - /** |
|
18 | - * returns true if current request matches specification |
|
19 | - * |
|
20 | - * @since 4.9.71.p |
|
21 | - * @return boolean |
|
22 | - */ |
|
23 | - public function isMatchingRoute() |
|
24 | - { |
|
25 | - return $this->request->getRequestParam('page') === 'espresso_events' |
|
26 | - && $this->request->getRequestParam('action') === 'create_new'; |
|
27 | - } |
|
17 | + /** |
|
18 | + * returns true if current request matches specification |
|
19 | + * |
|
20 | + * @since 4.9.71.p |
|
21 | + * @return boolean |
|
22 | + */ |
|
23 | + public function isMatchingRoute() |
|
24 | + { |
|
25 | + return $this->request->getRequestParam('page') === 'espresso_events' |
|
26 | + && $this->request->getRequestParam('action') === 'create_new'; |
|
27 | + } |
|
28 | 28 | } |
@@ -14,15 +14,15 @@ |
||
14 | 14 | */ |
15 | 15 | class EspressoVenueEditorEdit extends RouteMatchSpecification |
16 | 16 | { |
17 | - /** |
|
18 | - * returns true if current request matches specification |
|
19 | - * |
|
20 | - * @since 4.9.71.p |
|
21 | - * @return boolean |
|
22 | - */ |
|
23 | - public function isMatchingRoute() |
|
24 | - { |
|
25 | - return $this->request->getRequestParam('page') === 'espresso_venues' |
|
26 | - && $this->request->getRequestParam('action') === 'edit'; |
|
27 | - } |
|
17 | + /** |
|
18 | + * returns true if current request matches specification |
|
19 | + * |
|
20 | + * @since 4.9.71.p |
|
21 | + * @return boolean |
|
22 | + */ |
|
23 | + public function isMatchingRoute() |
|
24 | + { |
|
25 | + return $this->request->getRequestParam('page') === 'espresso_venues' |
|
26 | + && $this->request->getRequestParam('action') === 'edit'; |
|
27 | + } |
|
28 | 28 | } |
@@ -14,15 +14,15 @@ |
||
14 | 14 | */ |
15 | 15 | class EspressoVenueEditorAddNew extends RouteMatchSpecification |
16 | 16 | { |
17 | - /** |
|
18 | - * returns true if current request matches specification |
|
19 | - * |
|
20 | - * @since 4.9.71.p |
|
21 | - * @return boolean |
|
22 | - */ |
|
23 | - public function isMatchingRoute() |
|
24 | - { |
|
25 | - return $this->request->getRequestParam('page') === 'espresso_venues' |
|
26 | - && $this->request->getRequestParam('action') === 'create_new'; |
|
27 | - } |
|
17 | + /** |
|
18 | + * returns true if current request matches specification |
|
19 | + * |
|
20 | + * @since 4.9.71.p |
|
21 | + * @return boolean |
|
22 | + */ |
|
23 | + public function isMatchingRoute() |
|
24 | + { |
|
25 | + return $this->request->getRequestParam('page') === 'espresso_venues' |
|
26 | + && $this->request->getRequestParam('action') === 'create_new'; |
|
27 | + } |
|
28 | 28 | } |
@@ -15,23 +15,23 @@ |
||
15 | 15 | */ |
16 | 16 | class WordPressPostsEditorEdit extends RouteMatchSpecification |
17 | 17 | { |
18 | - /** |
|
19 | - * returns true if current request matches specification |
|
20 | - * |
|
21 | - * @since 4.9.71.p |
|
22 | - * @return boolean |
|
23 | - */ |
|
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 | - } |
|
18 | + /** |
|
19 | + * returns true if current request matches specification |
|
20 | + * |
|
21 | + * @since 4.9.71.p |
|
22 | + * @return boolean |
|
23 | + */ |
|
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 | 37 | } |
@@ -15,18 +15,18 @@ |
||
15 | 15 | class EspressoStandardPostTypeEditor extends RouteMatchSpecification |
16 | 16 | { |
17 | 17 | |
18 | - /** |
|
19 | - * returns true if current request matches specification |
|
20 | - * |
|
21 | - * @since 4.9.71.p |
|
22 | - * @return boolean |
|
23 | - */ |
|
24 | - public function isMatchingRoute() |
|
25 | - { |
|
26 | - return $this->request->getMatch('espresso_*') !== false |
|
27 | - && ( |
|
28 | - $this->request->getRequestParam('action') === 'edit' |
|
29 | - || $this->request->getRequestParam('action') === 'create_new' |
|
30 | - ); |
|
31 | - } |
|
18 | + /** |
|
19 | + * returns true if current request matches specification |
|
20 | + * |
|
21 | + * @since 4.9.71.p |
|
22 | + * @return boolean |
|
23 | + */ |
|
24 | + public function isMatchingRoute() |
|
25 | + { |
|
26 | + return $this->request->getMatch('espresso_*') !== false |
|
27 | + && ( |
|
28 | + $this->request->getRequestParam('action') === 'edit' |
|
29 | + || $this->request->getRequestParam('action') === 'create_new' |
|
30 | + ); |
|
31 | + } |
|
32 | 32 | } |