Make WordPress Core

Opened 22 years ago

Closed 22 years ago

#1307 closed defect (bug) (fixed)

wp-admin/admin.php crash

Reported by: Denis de Bernardy Owned by: matt
Priority: normal Milestone:
Component: Administration Version: 1.5.1
Severity: critical Keywords:
Cc: Focuses:

Description

the wp-amazon plugin makes the thing crash.

to solve, replace line 2 of wp-admin/admin.php:
require_once('../wp-config.php');

with:
require_once(ABSPATH . 'wp-config.php');

Attachments (1)

wpconfig-abspath.diff​ (494 bytes ) - added by Denis de Bernardy 21 years ago.

Download all attachments as: .zip

Change History (4)

#1 @Denis de Bernardy
22 years ago

  • Patch → No

#2 @Denis de Bernardy
22 years ago

if ( !defined( 'ABSPATH' ) )

require_once('../wp-config.php');

else

require_once(ABSPATH . 'wp-config.php');

edited on: 05-04-05 14:12

#3 @matt
22 years ago

  • fixed_in_version → 1.5.1
  • Owner changed from anonymous to matt
  • Resolution 10 → 20
  • Status new → closed
Note: See TracTickets for help on using tickets.