pronamic/wp-pay-core

Code not compatible with PHP 7.4

knit-pay opened this issue · 1 comments

Hello Team

The below code is not compatible with PHP version 7.4. May I raise a pull request to fix it?

if ( str_starts_with( $request_info->get_request_url(), home_url( '/' ) ) ) {

Polyfills for str_starts_with() and str_ends_with() have been included in WordPress since WordPress version 5.9. Therefore, we also mention in our plugin file that WordPress 5.9+ is required:

I don't think there's any need to otherwise update the code.