[wp-trac] [WordPress Trac] #40969: RFE: get_template_part() to return something or warn when nothing found

WordPress Trac noreply at wordpress.org
Thu Jun 4 18:14:43 UTC 2020


#40969: RFE: get_template_part() to return something or warn when nothing found
-------------------------------------------------+-------------------------
 Reporter:  sphakka                              |       Owner:  (none)
     Type:  enhancement                          |      Status:  reviewing
 Priority:  normal                               |   Milestone:  5.5
Component:  Themes                               |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch dev-feedback needs-dev-    |     Focuses:  template
  note early has-unit-tests needs-testing        |
-------------------------------------------------+-------------------------

Comment (by birgire):

 Replying to [comment:46 tferry]:
 > Last patch simply updates the WP version number in the PHP function
 comment blocks

 Hi, unable to test it for now, but I wonder if tests can be simplified
 with {{{assertNull}}}, {{{assertFalse}}} and {{{expectOutputString}}}.

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


More information about the wp-trac mailing list