WP-CLI (PHP 7) reports empty needle in wp-security-audit-log.php strpos() call
-
Using WP-CLI 2.4.0, PHP 7.3.15, WordPress 5.3.2 and WP Security Audit Log 4.0.1, most WP-CLI commands produce a warning and traceback about an “empty needle” in a strpos() call.
Example (run from the top level of the WordPress web tree):
wp plugin list
PHP Warning: strpos(): Empty needle in <webtree>/wp-content/plugins/wp-security-audit-log/wp-security-audit-log.php on line 216This would suggest that $rest_url_path is set to a blank string at line 214, so it probably needs to be checked for being blank or not before being used on line 216.
The topic ‘WP-CLI (PHP 7) reports empty needle in wp-security-audit-log.php strpos() call’ is closed to new replies.