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.

git-svn-id: https://develop.svn.wordpress.org/trunk@53518 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2022-06-17 11:18:37 +00:00
parent 812af1515f
commit d39bc7e304
5 changed files with 10 additions and 9 deletions
+3 -2
View File
@@ -11,12 +11,13 @@ if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', __DIR__ . '/' );
}
if ( file_exists( ABSPATH . 'wp-includes/js/dist/edit-post.js' ) ) {
define( 'WPINC', 'wp-includes' );
if ( file_exists( ABSPATH . WPINC .'/js/dist/edit-post.js' ) ) {
require_once ABSPATH . '_index.php';
return;
}
define( 'WPINC', 'wp-includes' );
require_once ABSPATH . WPINC . '/load.php';
// Standardize $_SERVER variables across setups.