Fix for WP 5.9
-
Hi All
the plugin fails in WP 5.9
Here is a fork with the fix
https://github.com/pbearne/photo-express/tree/str_starts_with-fix-for-WP-5.9you can download the zip
https://github.com/pbearne/photo-express/archive/refs/heads/str_starts_with-fix-for-WP-5.9.zip and upload via FTPor if you just want to fix it in the WP-admin editor go to
/wp-admin/plugin-editor.php?plugin=photo-express-for-google%2Fphoto-express.php&Submit=Selectand change line 250 from
function str_starts_with( $haystack, $needle ) { return substr( $haystack, 0, strlen( $needle ) ) === $needle; }
to
if( ! function_exists( 'str_starts_with' ) ){ function str_starts_with( $haystack, $needle ) { return substr( $haystack, 0, strlen( $needle ) ) === $needle; } }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fix for WP 5.9’ is closed to new replies.