Make WordPress Core

Opened 14 months ago

Closed 14 months ago

Last modified 13 months ago

#58401 closed feature request (invalid)

WP_Theme_JSON_Data::get_data() but for parent theme

Reported by: benniledl's profile benniledl Owned by:
Milestone: Priority: normal
Severity: trivial Version:
Component: General Keywords: close
Focuses: Cc:

Description

Hello,
functions to return files or paths like get_stylesheet_directory_uri or get_template_directory_uri exist for both to return the path to the child-theme or the parent-theme.
It would be nice to have a method like WP_Theme_JSON_Data::get_data() to return the parent-theme's theme.json not only the child's

Change History (3)

#2 @benniledl
14 months ago

  • Keywords close added; changes-requested removed
  • Resolution set to invalid
  • Status changed from new to closed

Just found out that there is a way with WP_Theme_JSON_Resolver::get_theme_data()

#3 @swissspidy
13 months ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.