[wp-trac] [WordPress Trac] #54878: Don't show links to the Customizer when installing themes using api.wordpress.org

WordPress Trac noreply at wordpress.org
Thu Feb 24 23:54:36 UTC 2022


#54878: Don't show links to the Customizer when installing themes using
api.wordpress.org
-------------------------------------+---------------------
 Reporter:  antonvlasenko            |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  6.0
Component:  Themes                   |     Version:  5.9
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+---------------------

Comment (by ironprogrammer):

 Thanks for the patch, @antonvlasenko! **tl;dr** It appears that after the
 install action that the **Live Preview** button is not being removed, but
 is removed upon subsequent page loads.

 == Test Report

 [https://github.com/WordPress/wordpress-develop/pull/2349 PR 2349]

 === Env
 * WordPress 6.0-alpha-52448-src
 * Safari 15.3
 * macOS 12.2.1 (Monterey)
 * Theme: Twenty Twenty-Two
 * Gutenberg 12.7.0-rc.1 ENABLED 🟢 and DISABLED 🔴

 === Steps to Test
 1. On ''Appearance > Themes'' activate "Twenty Twenty-Two" theme.
 1. Observe active theme's **Customize** button points to `/wp-admin/site-
 editor.php` (with Gutenberg: `/wp-admin/themes.php?page=gutenberg-edit-
 site`).
 1. Click **Add New** and search for "tt1" ("TT1 Blocks" theme).
 1. Click **Install** for "TT1 Blocks" theme.
 1. Observe **Live Preview** button is visible and links to `/wp-
 admin/customize.php?theme=tt1-blocks`. ❌
 1. Refresh page (Reload or repeat Steps 1-3).
 1. Observe **Live Preview** button is removed. ✅

 === Expected Results (✅/❌)
 - In Step 4, it was expected that the **Preview** button would disappear
 after installation, but in Step 5 the button was replaced with **Live
 Preview**, pointing to the Customizer. ❌
 - After a page refresh in Step 6, the **Live Preview** button was
 successfully removed from the theme buttons (Step 7). Before the patch,
 the button was still present, and linked to the Customizer. ✅

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54878#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list