wordpress-develop/src/wp-includes/rest-api
Jonny Harris 5e8c53a031 Themes: Reduce usage of wp_get_theme function.
Calling the `wp_get_theme` function creates a instance of the `WP_Theme` class. This can be a performance issue, if all you need is one property of the class instance. This change replaces the usage of `wp_get_theme()->get_stylesheet()` with `get_stylesheet()` to improve performance.

Props spacedmonkey, flixos90, peterwilsoncc, desrosj.
Fixes #57057.

git-svn-id: https://develop.svn.wordpress.org/trunk@54817 602fd350-edb4-49c9-b593-d223f7449a82
2022-11-11 16:24:47 +00:00
..
endpoints Themes: Reduce usage of wp_get_theme function. 2022-11-11 16:24:47 +00:00
fields Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:45:36 +00:00
search Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:45:36 +00:00
class-wp-rest-request.php Docs: Align spelling with American English. 2022-10-21 21:10:29 +00:00
class-wp-rest-response.php Docs: Update spelling for inline comments in a few files. 2022-01-25 13:54:01 +00:00
class-wp-rest-server.php Docs: Align spelling with American English. 2022-10-21 21:10:29 +00:00