Posts, Post Types: Remove now obsolete hardcoded `attachment` check for autosave support.

Follow-up to [58201].

Props swissspidy, spacedmonkey.
See #41172.
Built from https://develop.svn.wordpress.org/trunk@58211


git-svn-id: http://core.svn.wordpress.org/trunk@57674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Pascal Birchler 2024-05-27 15:24:13 +00:00
parent 21b8312b48
commit b2b6166091
2 changed files with 1 additions and 5 deletions

View File

@ -937,10 +937,6 @@ final class WP_Post_Type {
return null;
}
if ( 'attachment' === $this->name ) {
return null;
}
$class = $this->autosave_rest_controller_class ? $this->autosave_rest_controller_class : WP_REST_Autosaves_Controller::class;
if ( ! class_exists( $class ) ) {

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.6-alpha-58210';
$wp_version = '6.6-alpha-58211';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.