mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Themes: Add a return value to theme functions calling locate_template():
* `get_header()` * `get_footer()` * `get_sidebar()` * `get_template_part()` These functions now return false if the template file could not be found, to allow for easier debugging. Props tferry, sphakka, johnbillion, pento, davidbinda, desrosj, birgire, garrett-eclipse, williampatton, davidbaumwald, SergeyBiryukov. Fixes #40969. git-svn-id: https://develop.svn.wordpress.org/trunk@48209 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
1
tests/phpunit/data/themedir1/default/footer.php
Normal file
1
tests/phpunit/data/themedir1/default/footer.php
Normal file
@@ -0,0 +1 @@
|
||||
Footer
|
||||
1
tests/phpunit/data/themedir1/default/header.php
Normal file
1
tests/phpunit/data/themedir1/default/header.php
Normal file
@@ -0,0 +1 @@
|
||||
Header
|
||||
1
tests/phpunit/data/themedir1/default/sidebar.php
Normal file
1
tests/phpunit/data/themedir1/default/sidebar.php
Normal file
@@ -0,0 +1 @@
|
||||
Sidebar
|
||||
Reference in New Issue
Block a user