| 6 | | 23665-post-name.patch short-circuits `wp_unique_post_slug()` for post revisions. Currently revisions are saved with post_name `{$post->post_parent}-revision`, and autosaves: `{$post->post_parent}-autosave`. When there are more than one, wp_unique-post_slug kicks in and adds `-2`, `-3`, etc. to the end. This is intended for post slugs and not necessary for revisions. If we remove it, or remove it only for autosaves, we can run a different query to fetch only the autosaves for a post instead of looping through all revisions as in the other patch. |
| | 6 | 23665-post-name.patch short-circuits `wp_unique_post_slug()` for post revisions. Currently revisions are saved with post_name `{$post->post_parent}-revision`, and autosaves: `{$post->post_parent}-autosave`. When there are more than one, wp_unique_post_slug kicks in and adds `-2`, `-3`, etc. to the end. This is intended for post slugs and not necessary for revisions. If we remove it, or remove it only for autosaves, we can run a different query to fetch only the autosaves for a post instead of looping through all revisions as in the other patch. |