Make WordPress Core


Ignore:
Timestamp:
01/16/2025 04:16:15 PM (13 months ago)
Author:
SergeyBiryukov
Message:

Upload: Remove redundant check for ABSPATH in wp-admin/async-upload.php.

This aims to bring consistency with a similar fragment in other files, since relocating wp-admin or wp-load.php is not supported at this time.

Follow-up to [6659], [7971], [8315].

Props hussain896, swissspidy, knutsp, SergeyBiryukov.
Fixes #62809.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/async-upload.php

    r59407 r59634  
    1515}
    1616
    17 if ( defined( 'ABSPATH' ) ) {
    18     require_once ABSPATH . 'wp-load.php';
    19 } else {
    20     require_once dirname( __DIR__ ) . '/wp-load.php';
    21 }
     17/** Load WordPress Bootstrap */
     18require_once dirname( __DIR__ ) . '/wp-load.php';
    2219
    2320require_once ABSPATH . 'wp-admin/admin.php';
Note: See TracChangeset for help on using the changeset viewer.