[wp-trac] [WordPress Trac] #30705: Add parameter to get_the_term_list() to allow templating

WordPress Trac noreply at wordpress.org
Fri Mar 21 18:51:15 UTC 2025


#30705: Add parameter to get_the_term_list() to allow templating
------------------------------------------+---------------------
 Reporter:  davidjlaietta                 |       Owner:  (none)
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:
Component:  Taxonomy                      |     Version:  2.5
 Severity:  normal                        |  Resolution:
 Keywords:  has-unit-tests needs-refresh  |     Focuses:
------------------------------------------+---------------------
Changes (by SirLouen):

 * keywords:  needs-testing has-patch has-unit-tests => has-unit-tests
     needs-refresh


Comment:

 == Test Report
 === Description
 This report validates that the indicated patch works as expected.

 Patch tested: https://github.com/WordPress/wordpress-
 develop/pull/8393.diff

 === Environment
 - WordPress: 6.8-beta3-60042-src
 - PHP: 8.2.28
 - Server: nginx/1.27.4
 - Database: mysqli (Server: 8.4.4 / Client: mysqlnd 8.2.28)
 - Browser: Chrome 134.0.0.0
 - OS: Windows 10/11
 - Theme: Twenty Nineteen 3.0
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.0

 === Actual Results
 1.  ✅ Issue resolved with patch.
 2.  ✅ Unit tests are passing correctly.
 Only one unit test: `test_get_the_term_list_custom_template` is testing
 the current patch, the other two are released a little out of context, but
 its always good to have extra coverage, although the first one could be a
 good reminder to avoid accidentally removing the fallback default value
 for the new `$get_the_term_list` value
 3. ❌ Missing all doc comments in the
 `tests/phpunit/tests/term/termTemplate.php`, please review.

 === Additional Notes
 @sukhendu2002 provided a solution to the Gutenberg report @wildworks is
 suggesting
 https://github.com/WordPress/gutenberg/pull/69273/
 That doesn't really require editing this function.

 As @poena has mentioned: Although there is a patch that has be tested,
 this report requires an `use-case` that can illustrate why this can be an
 useful thing in 2025.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/30705#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list