Go to file
Gary Pendergast f91ac658fe Themes: Return the value of `locate_template()` in functions that call it.
The `get_header()`, `get_footer()`, `get_sidebar()`, and `get_template_part()` functions all call `locate_template()` as their final action, which returns the name of the template being loaded. Returning this value helps handle problems with templates being loaded.

Props tferry.
Fixes #40969.



git-svn-id: https://develop.svn.wordpress.org/trunk@44678 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-21 21:59:44 +00:00
src Themes: Return the value of `locate_template()` in functions that call it. 2019-01-21 21:59:44 +00:00
tests PHPCS: Fix formatting issues introduced in [44670]. 2019-01-21 19:56:47 +00:00
tools
.editorconfig
.gitignore Build/Test Tools: Update `.gitignore` to exclude `twentynineteen` and `twentysixteen`. 2019-01-09 13:44:30 +00:00
.jshintrc Build tools: Fix the `travis:js` build. 2018-12-24 13:53:11 +00:00
.npmrc
.nvmrc
.travis.yml
Gruntfile.js TinyMCE: retire wp-tinymce.php and remove pre-compression of wp-tinymce.js. 2019-01-18 19:50:19 +00:00
appveyor.yml Build Tools: Don't send AppVeyor notifications on Slack on repeated successful builds. 2019-01-15 05:48:46 +00:00
composer.json Build Tools: Upgrade WPCS to 2.0.0. 2019-01-18 02:14:24 +00:00
composer.lock Build Tools: Upgrade WPCS to 2.0.0. 2019-01-18 02:14:24 +00:00
jsdoc.conf.json
package-lock.json TinyMCE: retire wp-tinymce.php and remove pre-compression of wp-tinymce.js. 2019-01-18 19:50:19 +00:00
package.json TinyMCE: retire wp-tinymce.php and remove pre-compression of wp-tinymce.js. 2019-01-18 19:50:19 +00:00
phpcs.xml.dist Coding Standards: Upgrade WPCS to 1.2.1. 2019-01-12 06:40:16 +00:00
phpunit.xml.dist
webpack.config.js
wp-cli.yml Build/Tests: Default to running unit tests from `src`. 2019-01-09 10:09:02 +00:00
wp-config-sample.php General: Replace "Happy blogging" with "Happy publishing". 2019-01-08 04:29:06 +00:00
wp-tests-config-sample.php Tests: Revert [44509]. 2019-01-09 11:13:03 +00:00