• The line:

    require_once(‘../wp-config.php’);

    at line 23 in profile.php in the wp-admin directory is not needed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • could you explain that with a little more information? Not needed for what and why?

    Thread Starter lauchlin

    (@lauchlin)

    Well,

    the first line in profile.php is:

    require_once(‘admin.php’);

    and in admin.php wp-config is already included on lines 3 or 5 so it doesn’t make sense to include it again.

    Even if it is left in, it really should be using the ABSPATH static as everywhere else it is used that way.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unneeded code’ is closed to new replies.