Make WordPress Core

#57614 closed enhancement (fixed)

Editor: Remove need for template prefix in get_template_hierarchy .

Reported by: jorgefilipecosta's profile jorgefilipecosta Owned by: jorgefilipecosta's profile jorgefilipecosta
Milestone: 6.2 Priority: normal
Severity: normal Version: 6.2
Component: General Keywords: has-patch
Focuses: Cc:

Description (last modified by jorgefilipecosta)

This ticket was created to track the merge of https://github.com/WordPress/gutenberg/pull/46257 into the core.
The function get_template_hierarchy becomes easier to use as it does not require the caller to pass a template prefix. This is useful because, in some block editor usages, the template prefix is not known.
PR at https://github.com/WordPress/wordpress-develop/pull/3944.

Change History (2)

#1 @jorgefilipecosta
22 months ago

  • Description modified (diff)
  • Summary changed from Block Editor: Remove need for template prefix in get_template_hierarchy . to Editor: Remove need for template prefix in get_template_hierarchy .

#2 @jorgefilipecosta
22 months ago

  • Owner set to jorgefilipecosta
  • Resolution set to fixed
  • Status changed from new to closed

In 55194:

Editor: Remove need for template prefix in get_template_hierarchy.

This commit removes the need to pass a template prefix in get_template_hierarchy.
This is required because, in some block editor usages, the template prefix is not known.

Props youknowriad, davidbaumwald, jorgefilipecosta.
Fixes #57614.

Note: See TracTickets for help on using tickets.