core/domain/entities/routing/specifications/admin/WordPressPageEditorAddNew.php 1 location
|
@@ 15-28 (lines=14) @@
|
| 12 |
|
* @author Brent Christensen |
| 13 |
|
* @since 4.9.71.p |
| 14 |
|
*/ |
| 15 |
|
class WordPressPageEditorAddNew extends RouteMatchSpecification |
| 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') === 'page'; |
| 27 |
|
} |
| 28 |
|
} |
| 29 |
|
|
core/domain/entities/routing/specifications/admin/WordPressPostsEditorAddNew.php 1 location
|
@@ 15-28 (lines=14) @@
|
| 12 |
|
* @author Brent Christensen |
| 13 |
|
* @since 4.9.71.p |
| 14 |
|
*/ |
| 15 |
|
class WordPressPostsEditorAddNew extends RouteMatchSpecification |
| 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 |
|
} |
| 28 |
|
} |
| 29 |
|
|
core/domain/entities/routing/specifications/admin/WordPressPostsListTable.php 1 location
|
@@ 15-28 (lines=14) @@
|
| 12 |
|
* @author Brent Christensen |
| 13 |
|
* @since 4.9.71.p |
| 14 |
|
*/ |
| 15 |
|
class WordPressPostsListTable extends RouteMatchSpecification |
| 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 |
|
} |
| 28 |
|
} |
| 29 |
|
|