Automattic / themes

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

Dara: invalid link in WP Admin theme details page #1993

Open tbradsha opened 4 years ago

tbradsha commented 4 years ago

Steps to replicate

  1. Install/activate Dara.
  2. Go to **WP Admin → Appearance → Themes.
  3. Hover over the Dara box, and click "Theme Details".

Result

Not that there are two "Background" buttons. The first link is invalid, and triggers a 403 since it goes here:

themes.php?page=https://example.com/wp-admin/customize.php?autofocus%5Bsection%5D=colors_manager_tool

The second one, which works as expected, goes here: customize.php?autofocus[control]=background_image

Incidentally, there's also a third hidden "Background" link going here: themes.php?page=custom-background

image

Expected

There should only be one link to the Background section of the Customizer, and it should work.

nielslange commented 4 years ago

Thanks for reporting this issue, @tbradsha!

This issue:

a) seems to only affect the theme(s) on WordPress.com, but not on WordPress.org b) seems to only affect old themes, such as Dara and Independent Publisher 2, but not new themes, such as Varia and its child themes

Links within WordPress.org

Links within WordPress.com

WordPress.org
» Dara:

![#1993-org](https://user-images.githubusercontent.com/3323310/81467862-bbb64d80-9205-11ea-9e93-ce98404d241b.png)
WordPress.com
» Dara:

![#1993-com](https://user-images.githubusercontent.com/3323310/81467861-bb1db700-9205-11ea-99f8-43d72ceba9f3.png)
WordPress.com
» Independent Publisher 2:

![#1993-com-independent-publisher-2](https://user-images.githubusercontent.com/3323310/81467860-b8bb5d00-9205-11ea-98c0-478b59819407.png)

cc: @mendezcode, @kjellr or @allancole as I'm sure one of you might have an explanation of this issue.

tbradsha commented 4 years ago

I'd imagine it doesn't affect Varia variants since Background and Header sections aren't available in the Customizer?

nielslange commented 4 years ago

That's a good point, @tbradsha!