Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#55325 closed enhancement (fixed)

Theme Editor: Add file description for theme.json

Reported by: ocean90 Owned by: audrasjb
Priority: normal Milestone: 6.1
Component: Themes Version:
Severity: normal Keywords: good-first-bug has-patch commit
Cc: Focuses: administration

Description

It would be nice to show a description for theme.json in the theme editor instead of only theme.json.

The current list of file descriptions: https://core.trac.wordpress.org/browser/tags/5.9.1/src/wp-admin/includes/file.php?marks=14-65#L14

Attachments (2)

55325.png (54.3 KB ) - added by ocean90 4 years ago.
File tree of Twenty Twenty-Two
55325-pr-applied.png (71.3 KB ) - added by poena 4 years ago.
File list with PR applied

Download all attachments as: .zip

Change History (7)

@ocean90
4 years ago

File tree of Twenty Twenty-Two

This ticket was mentioned in PR #2425 on WordPress/wordpress-develop by kapilpaul.


4 years ago
#1

  • Keywords has-patch added; needs-patch removed

@poena
4 years ago

File list with PR applied

#2 @poena
4 years ago

  • Keywords commit added
  • Milestone Future Release6.1

The PR works well for me, thank you.

Testing instructions

Apply the PR.
Install a theme that includes a theme.json file.
In the WordPress admin area, go to Tools, Theme File Editor.
Select the theme in the drop down.
Confirm if theme.json has a description in the file list.

#3 @audrasjb
4 years ago

  • Owner set to audrasjb
  • Status newreviewing

The patch looks good at a glance, thanks! Self assigning for final test and commit.

#4 @audrasjb
4 years ago

  • Resolutionfixed
  • Status reviewingclosed

In 54140:

Themes: Implement file description for theme.json.

This changeset adds a file description for theme.json. This description is notably used in the Theme File Editor.

Props ocean90, kapilpaul, poena.
Fixes #55325.

Note: See TracTickets for help on using tickets.