Self-contain wp-includes/load.php, wp-includes/plugin.php
|Reported by:||scottconnerly||Owned by:|
I'm trying to write a high-performance plugin.
I still want the whole of WP to be used by the admins, and the main part of WP to still be used by most user workflows, but I want certain end users to instead be using an alternate controller, instead of /index.php, when they're doing certain things.
This new controller I'll write will use a couple of the core files, but skips most for the goal of increased performance. The proposed core files to re-use are:
However, wp-includes/functions.php is a can of worms, that if I included, would require me to include many other files, and it spiders out from there.
What would be better is if the following functions that wp-includes/load.php and wp-includes/plugin.php require be moved into those files from the functions file. Specifically:
If they aren't, I'll have to copy-paste them into my custom controller, maintaining separate versions of them (less than optimal).
Of course, this process still requires me to write my own simpler versions of many more complex functions:
but that's completely acceptable.
Moving those first 6 functions from the functions file to the load and plugin files would not negatively affect core, but would positively affect plugin authors' abilities to write high-performance plugins.