253 Undefined indexes fix
-
After a fresh install, in
Dashboard > Caching > Expires
, noticed many (253) red entries shown in the Query Monitor plugin, like that one below:Notice Undefined index: default wp-content/plugins/http-headers/views/expires.php:93 Plugin: http-headers
The quick-fix that worked for me, changing this:
?><option value="<?php echo $k; ?>"<?php selected($expires_value[$type], $k); ?>><?php echo $v; ?></option><?php
to this:$val_type = !empty($expires_value[$type]) ? $expires_value[$type] : ''; ?><option value="<?php echo $k; ?>"<?php selected($val_type, $k); ?>><?php echo $v; ?></option><?php
Thanks for the very useful plugin!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘253 Undefined indexes fix’ is closed to new replies.