Make WordPress Core

Changeset 53518 for trunk/src/index.php


Ignore:
Timestamp:
06/17/2022 11:18:37 AM (2 years ago)
Author:
SergeyBiryukov
Message:

General: Use WPINC as a shorter reference to wp-includes in some files.

This brings more consistency with similar require_once statements and _deprecated_file() calls in other files.

Follow-up to [601], [628], [36693], [44359], [45663], [45678], [52026],

Props malthert.
See #54233.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/index.php

    r47198 r53518  
    1212}
    1313
    14 if ( file_exists( ABSPATH . 'wp-includes/js/dist/edit-post.js' ) ) {
     14define( 'WPINC', 'wp-includes' );
     15
     16if ( file_exists( ABSPATH . WPINC .'/js/dist/edit-post.js' ) ) {
    1517    require_once ABSPATH . '_index.php';
    1618    return;
    1719}
    1820
    19 define( 'WPINC', 'wp-includes' );
    2021require_once ABSPATH . WPINC . '/load.php';
    2122
Note: See TracChangeset for help on using the changeset viewer.