File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 66 "magento/magento-composer-installer" : " *"
77 },
88 "type" : " magento2-module" ,
9- "version" : " 0.1.3 " ,
9+ "version" : " 0.1.4 " ,
1010 "autoload" : {
1111 "files" : [
1212 " src/registration.php"
Original file line number Diff line number Diff line change @@ -113,13 +113,15 @@ public function __construct(
113113 */
114114 public function match (\Magento \Framework \App \RequestInterface $ request )
115115 {
116+ $ identifier = $ this ->requestHelper ->getSlug ($ request );
116117
117118 foreach ($ this ->_matchers as $ action => $ method ) {
119+ $ isMatch = false ;
118120 try {
119121 $ isMatch = call_user_func ([$ this , $ method ], $ identifier );
120122 }
121123 catch (ApiException $ exception ) {
122- return false ;
124+ // swallow the error as most likely a 404
123125 }
124126
125127 if ($ isMatch ) {
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" ?>
22<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:Module/etc/module.xsd" >
3- <module name =" Skywire_WordpressApi" setup_version =" 0.1.3 " >
3+ <module name =" Skywire_WordpressApi" setup_version =" 0.1.4 " >
44 </module >
55</config >
You can’t perform that action at this time.
0 commit comments