Skip to content

Instantly share code, notes, and snippets.

@sean-e-dietrich
Created October 30, 2021 07:11
Show Gist options
  • Save sean-e-dietrich/711d5dbfd87d3aa03ca5e7d584ce9f0c to your computer and use it in GitHub Desktop.
Save sean-e-dietrich/711d5dbfd87d3aa03ca5e7d584ce9f0c to your computer and use it in GitHub Desktop.
Wordpress Autoloader
diff --git a/wp-settings.php b/wp-settings.php
index 99e77f3..aa73603 100644
--- a/wp-settings.php
+++ b/wp-settings.php
@@ -30,6 +30,7 @@ define( 'WPINC', 'wp-includes' );
* @global string $wp_local_package Locale code of the package.
*/
global $wp_version, $wp_db_version, $tinymce_version, $required_php_version, $required_mysql_version, $wp_local_package;
+require ABSPATH . '/autoload.php';
require ABSPATH . WPINC . '/version.php';
require ABSPATH . WPINC . '/load.php';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment