[wp-trac] [WordPress Trac] #63674: Missing text domain in query-large-title-posts.php block pattern

WordPress Trac noreply at wordpress.org
Tue Jul 8 17:18:54 UTC 2025


#63674: Missing text domain in query-large-title-posts.php block pattern
---------------------------+-------------------------------------
 Reporter:  sandippatel11  |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Editor         |    Version:  6.8
 Severity:  normal         |   Keywords:  has-patch needs-testing
  Focuses:  accessibility  |
---------------------------+-------------------------------------
 The block pattern file `query-large-title-posts.php` located in `wp-
 includes/block-patterns/` is missing the `text domain` in the `_x()`
 translation function.

 This causes the translation to be skipped in some cases or not properly
 recognized by Polyglots or string extraction tools.

 Proposed change:

 Before:
 'title' => _x( 'Large title', 'Block pattern title' ),

 After:
 'title' => _x( 'Large title', 'Block pattern title', 'default' ),

 This ensures the translation system knows which domain it belongs to.
 Adding this also aligns with other patterns already using text domains.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63674>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list