Can someone please run this down for me?

EDIT: Ok, I should've been more precise with my question, so I'll rephrase: Why did the Wordpress devs choose to store everything including the domain everywhere and not just include it on the fly, marking internal and external links as such. Beside the fact that migrating any install is not just a simple matter of a search-replace, as one must take into account serialized entries, this makes it difficult even to develop on a stack that requires one to access via a port like 8080, as it too must be added to the domain in the database(think Vagrant).

Don't get me wrong, I'm sure they had their reasons and I trust that they made the right choice, but I would like a rundown of the reasons and maybe pros/cons of going this route.

  • 1
    hmmm, who said such a thing? please edit the question and be much more specific in what is it that you mean. – Mark Kaplun Jun 13 '17 at 13:24
  • 1
    I think you are asking why you can't simply move WP to a new domain and have it "just work". If that is the case, there are a few reasons, mostly having to do with the large variety of setup/configuration options and plugin/theme developers not considering those options when building their product. Not having the URL saved in the DB would require relative links, check this answer for more on why WP chooses not to use them. – DaveLak Jun 13 '17 at 13:24
  • @DaveLak, that answer why it is like it is, not why can't it be different, to which the answer is that it can – Mark Kaplun Jun 13 '17 at 13:26
  • @MarkKaplun I was just about to say that. One of the reasons that crossed my mind was some sites having different values in WordPress Address and Site URL, which may cause issues if the WordPress itself just fills them out automatically. – Jack Johansson Jun 13 '17 at 13:27
  • @MarkKaplun Well the title of this question is "Why Wordpress _isn't and/or can't_[...]" so yes, the linked answer addresses the isn't part. The can't is very dependent on an individual's particular case, i.e. will their theme or plugins break with relative URLs so I'm not sure there can be a definitive answer there. – DaveLak Jun 13 '17 at 13:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.