Go to file
K. Adam White 7aae0cfe56 REST API: Generate sample permalink only when a dependent field is requested.
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.


git-svn-id: https://develop.svn.wordpress.org/trunk@45705 602fd350-edb4-49c9-b593-d223f7449a82
2019-07-31 19:59:30 +00:00
src REST API: Generate sample permalink only when a dependent field is requested. 2019-07-31 19:59:30 +00:00
tests I18N: Following [45688], remove test for removed method. 2019-07-27 14:29:28 +00:00
tools Tools: Remove internationalization tools (also known as `makepot.php`). 2019-07-27 13:09:16 +00:00
.editorconfig
.gitignore Build/Test Tools: Ignore generated RTL CSS files from Git version control. 2019-05-25 12:29:36 +00:00
.jshintrc Build tools: Fix the `travis:js` build. 2018-12-24 13:53:11 +00:00
.npmrc
.nvmrc
.travis.yml Coding Standards: Fix the remaining issues in `/tests`. 2019-07-08 00:55:20 +00:00
Gruntfile.js Coding Standards: Move the remaining PHPCS errors to report as warnings, and add Travis tests. 2019-07-19 07:47:16 +00:00
appveyor.yml Build/Test Tools: Remove the dependency on a globally installed Grunt. 2019-05-26 19:34:24 +00:00
composer.json Coding Standards: Move the remaining PHPCS errors to report as warnings, and add Travis tests. 2019-07-19 07:47:16 +00:00
composer.lock Coding Standards: Upgrade WPCS to 2.1.1. 2019-07-05 02:49:53 +00:00
jsdoc.conf.json Build Tools: Fix JSDoc configuration include paths. 2018-06-14 12:45:06 +00:00
package-lock.json Build/Test Tools: Add the e2e tests setup. 2019-06-27 11:26:58 +00:00
package.json Build/Test Tools: Add the e2e tests setup. 2019-06-27 11:26:58 +00:00
phpcs.xml.dist Coding Standards: Move the remaining PHPCS errors to report as warnings, and add Travis tests. 2019-07-19 07:47:16 +00:00
phpunit.xml.dist Coding Standards: Fix the remaining issues in `/tests`. 2019-07-08 00:55:20 +00:00
webpack.config.js Build tools: Allow building WordPress to `src`. 2018-12-24 13:28:22 +00:00
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