WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #23665, comment 2


Ignore:
Timestamp:
03/08/13 03:21:57 (14 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23665, comment 2

    v1 v2  
    44- Show the correct preview to each user when several users are editing. 
    55 
    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. 
     623665-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.