[wp-trac] [WordPress Trac] #63214: The View Version Details Link in Theme Updates Doesn't Show Version Details

WordPress Trac noreply at wordpress.org
Wed Apr 2 08:28:52 UTC 2025


#63214: The View Version Details Link in Theme Updates Doesn't Show Version Details
--------------------------+------------------------------
 Reporter:  jeffr0        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by kasparsd):

 The challenge here is that themes don't use the `theme_information`
 lightbox with the details from the Theme API, and instead render an
 external URL:

 [[Image(https://cldup.com/1seBgu1c-K.png)]]

 while plugins use locally rendered iframes with data from the API
 response:

 [[Image(https://cldup.com/0sNW69tF7v.png)]]

 There are three things that need to happen to fix this:

 1. Update the
 `api.wordpress.org/themes/info/1.2/?action=theme_information` endpoint to
 return all sections of the theme `readme.txt`. Somewhat covered by
 https://meta.trac.wordpress.org/ticket/215. Currently
 [https://api.wordpress.org/themes/info/1.2/?action=theme_information&request%5Bslug%5D=twentytwentyfour
 the response] doesn't include the `changelog` section (compare to
 [https://api.wordpress.org/plugins/info/1.2/?action=plugin_information&request%5Bslug%5D
 =safe-redirect-manager a plugin response]):

 {{{
 {
         "name": "Twenty Twenty-Four",
         "slug": "twentytwentyfour",
         "sections": {
                 "description": "Twenty Twenty-Four is..."
         }
 }
 }}}

 2. Update `wp-admin/theme-install.php` to support `?tab=theme-
 information&theme=theme-slug&section=changelog` payload and rendering
 [https://github.com/WordPress/wordpress-
 develop/blob/99186cb02f97f367ad859eeba278cfc962904c71/src/wp-
 admin/includes/plugin-install.php#L516-L894 similar to
 `install_plugin_information()` in plugin-install.php].

 3. Update [https://github.com/WordPress/wordpress-
 develop/blob/50fb4086b7afbfa012c5d1f2eeff79b1bae3b00e/src/wp-
 admin/includes/theme.php#L213-L222 relevant WP update/theme UI parts] to
 use the `wp-admin/theme-install.php?tab=theme-information&theme=theme-
 slug&section=changelog` lightbox URLs similar to
 [https://github.com/WordPress/wordpress-
 develop/blob/99186cb02f97f367ad859eeba278cfc962904c71/src/wp-
 admin/includes/update.php#L475-L481 how plugins do it].

 Overall, this is relatively large task impacting many areas of the
 codebase and none of the existing tasks seem to cover the full user story
 of this feature.

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


More information about the wp-trac mailing list