Fix for “Undefined index: page” log entry
-
A bunch of admin contexts where the
admin_enqueue_scripts
hook is fired do not have thepage
querystring param, so many web server log entries are generated. Here’s the fix.Replace line 192 of pressbooks-openstax-import.php:
if ( 'pb_import' === $_REQUEST['page'] ) {
With:
if ( isset( $_REQUEST['page'] ) && 'pb_import' === $_REQUEST['page'] ) {
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Fix for “Undefined index: page” log entry’ is closed to new replies.