mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-03 11:59:23 +00:00
This prevents a number of php notices that are surfaced due to the endpoint being called on load of the post editor even when there are no templates. Reviewed by joemcgill. Merges [58079] to the 6.5 branch. Props grantmkin, CookiesForDevo, britner, wildworks, jorbin. Fixes #60909. Built from https://develop.svn.wordpress.org/branches/6.5@58080 git-svn-id: http://core.svn.wordpress.org/branches/6.5@57545 1a063a9b-81f0-0310-95a4-ce76da25c4cd