[wp-trac] [WordPress Trac] #41172: Allow autosaving to be disabled on a per post type basis

WordPress Trac noreply at wordpress.org
Mon May 27 09:04:27 UTC 2024


#41172: Allow autosaving to be disabled on a per post type basis
---------------------------------------------+-----------------------------
 Reporter:  Frank Klein                      |       Owner:  swissspidy
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  6.6
Component:  Autosave                         |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  administration
---------------------------------------------+-----------------------------
Changes (by swissspidy):

 * owner:  (none) => swissspidy
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"58201" 58201]:
 {{{
 #!CommitTicketReference repository="" revision="58201"
 Posts, Post Types: Autosave: Allow disabling autosave support per post
 type.

 Not all post types support autosaving. By making autosave a post type
 feature, support can be more granularly handled without any workarounds or
 hardcoded allowlists. `wp_font_family` and `wp_font_face` are examples of
 built-in post types which do not support autosave.

 For backward compatibility reasons, adding `editor` support implies
 `autosave` support, so one would need to explicitly use
 `remove_post_type_support()` to remove it again.

 Props swissspidy, youknowriad, hellofromtonya, peterwilsoncc.
 Fixes #41172.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/41172#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list