mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-25 16:25:26 +00:00
The sample permalink will now only be generated if the derivative `permalink_template` or `generated_slug` fields are to be included in the response, preventing an unnecessary database request for each post (via `wp_unique_post_slug()`) when those fields are not requested. Props dlh. See #45605. Built from https://develop.svn.wordpress.org/trunk@45705 git-svn-id: http://core.svn.wordpress.org/trunk@45516 1a063a9b-81f0-0310-95a4-ce76da25c4cd