Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#57614 closed enhancement (fixed)

Editor: Remove need for template prefix in get_template_hierarchy .

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

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
4 years ago

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

#2 @jorgefilipecosta
4 years ago

  • Owner set to jorgefilipecosta
  • Resolutionfixed
  • Status newclosed

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.