Open goldhat opened 8 years ago
Full error on PHP7: Fatal error: 'continue' not in the 'loop' or 'switch' context in C:\wamp\www\v7workspace\wp-content\plugins\wp-on-routes\lib\main.php on line 53
I can't test it right now, can you try "return" instead of "continue" please? But I checked for 5.6 and I get correct response from that sample (wor_dump action).
return worked
On PHP7 has error about "continue" being used outside loop. Switched down to PHP5.6, but routes don't load anything using the sample code just outputs "[]" for every route, even if the wor_dump() from the sample has a print or die statement. Not sure how to debug it, so I guess something is going wrong because of changes in the later versions of WP?