PHP Errors in WP-CLI
-
I use the WordPress CLI to manage and deploy sites. When I have WP_DEBUG enabled and this plugin activated I consistently get noise in the responses around the following PHP notices from lines in your function
current_page_url()
Notice: Undefined index: SERVER_PORT in /Users/me/Sites/site/wp-content/plugins/ajax-search-lite/includes/functions/functions.php on line 570 Notice: Undefined index: SERVER_PORT in /Users/me/Sites/site/wp-content/plugins/ajax-search-lite/includes/functions/functions.php on line 571
It would be great if you could wrap those references to
$_SERVER["SERVER_PORT"]
with anisset()
orarray_key_exists()
in a future version.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP Errors in WP-CLI’ is closed to new replies.