little bug in level.php
-
site settings:
Wordpress Version 5.4.2
PHP-Version 7.4.8my debug.log:
[03-Aug-2020 06:38:57 UTC] PHP Notice: Undefined index: path in xxxxxx/wp-content/plugins/restrict-user-access/level.php on line 471
[03-Aug-2020 06:38:57 UTC] PHP Deprecated: stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in xxxxxx/wp-content/plugins/restrict-user-access/level.php on line 471level.php Line 470: $parts = parse_url(get_site_url());
level.php Line 471 $pos = stripos($current_path, $parts[‘path’]);Usually there will never be a ‘path’ element in the array returning from parse_url() when calling it with get_site_url().
I think this is a bug and should be changed to:
level.php Line 470: $parts = parse_url($current_path);
The topic ‘little bug in level.php’ is closed to new replies.