As a contrary example of how to do classes right, the MO class that is the core of translation is not final and I should be able to easily extend it to return object that dynamically convert to string with the magic __tostring, and that way load and parse the translation only when they are actually required.
This is something that is notnsolvable with just an interface as an interface would have required me to fork the class and keep merging new changes into the fork
... and that was just a mental exercise. At some point I will have to try implement it and check how much memory can be saved by late binding translations, for at least some of the page loads
well, maybe composition/facade would have been good enough and there is no need for a full fork of the code of the class ....
So, strange issue here. Trying to filter includes_url. Replacing site_url() with network_site_url(). The URL isn't changing. I've tried default priority, low priority, and insanely high priority. It still isn't changing the URL. Any idea why?
I can output the original URL and the modified URL, immediately BEFORE the return statement, and it is replacing just fine. I'm returning the replaced URL and it's still not changing the URL.
The URL of includes_url() is this: $url = site_url( '/' . WPINC . '/', $scheme );
wow... that's because WordPress doesn't use includes_url(); when enqueuing scripts. /sigh... ended up having to use style_loader_src and script_loader_src.