Conversation
This avoids a `ltrim(): Passing null to parameter #1 ($string) of type string is deprecated` notice on PHP 8.1.
|
Thank you for your interest! Pull requests should be made against the monorepo at https://github.com/Automattic/jetpack. |
|
@iandunn The repo must remain, since the plugin is distributed from here to SVN, and available to folks consuming it via Composer from here. Maybe we could add a mention to the readme though, making that clearer? |
|
I note the description in the upper right already notes that it's read-only and "This repository is a mirror, for issue tracking and development head to: https://github.com/automattic/jetpack", like all of our mirror repos do. Note that, as things are now, any change to the readme will also be present in the plugin itself (e.g. https://plugins.trac.wordpress.org/browser/wp-super-cache/trunk/README.md), so keep that in mind when editing it. |
Running a CLI command like
wp cron event liston PHP 8.1 produces a deprecation notice:This PR detects if it's
nulland passes an empty string instead. I didn't use??because that requires PHP 7.