Plugin doesn’t work if WP core is installed in a subdirectory
-
Our WordPress installation has core files in /wp
Therefore the user admin page is at https://example.org/wp/wp-admin/users.phpThe code fails in lock-user-account/includes/class-user-meta.php at line 73, which assumes that WP is installed in a standard way.
I would suggest that this line would be better written as
...&& strpos( wp_get_referer(), '/wp-admin/users.php' ) !== false )
because this would check that the referrer contains the correct path, rather than equals the default path.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Plugin doesn’t work if WP core is installed in a subdirectory’ is closed to new replies.