2 ms·
On the other hand, it's WordPress where execution begins, and it's WordPress that loads the theme into the interpreter.
by dangrossman 17y ago
On the other hand, it's WordPress where execution begins, and it's WordPress that loads the theme into the interpreter.
- pvg 17y agoThis isn't necessarily true - it's quite possible that a Wordpress index template is the first thing run. The idea that copyright law hinges on who called whom first remains preposterous, though.
- ramen 17y agoPossible, but exceedingly rare. For a theme to provide a top-level script, it would be referenced with a URL like mysite.com/wp-content/themes/mytheme/scriptname.php, which would be ugly, brittle, and contrary to the clean-URL style that WordPress promotes. It is nearly universal that WordPress's code responds to a request first, and then dispatches to the appropriate files in a theme depending on the type of request.