Automattic / themes

Free WordPress themes made by Automattic for WordPress.org and WordPress.com.
https://themeshaper.com
GNU General Public License v2.0
900 stars 357 forks source link

Themes linking/embedding resources from development websites #8252

Open dsas opened 3 weeks ago

dsas commented 3 weeks ago

Quick summary

Several themes are linking to the site used to develop the theme, or is embedding images & assets from that theme development site. This shouldn't be happening for two reasons:

  1. Users have to find and fix all of the links, otherwise their visitors will be taken to your development website. For many of these links they're probably changing them anyway, but they might miss a 'home' link, assuming it'll just work.
  2. If you delete these sites, the people using the fonts and images linked from them will have the appearance of their websites changed.

Currently affected themes:

Steps to reproduce

Search the code on github for 'mystagingwebsite': https://github.com/search?q=repo%3AAutomattic%2Fthemes%20mystagingwebsite&type=code

A clear and concise description of what you expected to happen.

I expected there to be zero results

What actually happened

It found 18 files across

Impact

One

Available workarounds?

There is no user impact

If the above answer is "Yes...", outline the workaround.

No response

Platform (Simple and/or Atomic)

No response

Logs or notes

No response

Robertght commented 3 weeks ago

@dsas, it looks like you have this one on your plate already.

I'm going to mark this as Triaged on our board, but let us know if you need our help checking some things in the process.

alaczek commented 2 weeks ago

Adonay is on the list, but I'm not seeing resources from staging site in the code. There was an issue on the demo site specifically, which I fixed.

alaczek commented 2 weeks ago

BTW, here's the search results for localhost:

https://github.com/search?q=repo%3AAutomattic%2Fthemes+localhost&type=code

alaczek commented 1 week ago

I began working through these, starting with GrammerOne. Boy, is it a can of worms 😬 Essentially, it wasn't using site title, logo and tagline blocks, but static heading and images, so I ended up fixing it in every header. I would appreciate a review though.

Btw, should I create a new branch for every theme I fix, or is it ok to keep it all on one branch with seperate commits for each theme @dsas?

dsas commented 1 week ago

Boy, is it a can of worms

😬

should I create a new branch for every theme I fix

Whichever works for you really. It's ok to keep it all on one branch. I prefer many smaller branches as it's quicker to review them one-by-one.