Make WordPress Core


Ignore:
Timestamp:
05/27/2024 03:22:05 PM (20 months ago)
Author:
swissspidy
Message:

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

Follow-up to [58201].

Props swissspidy, spacedmonkey.
See #41172.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/wpPostType.php

    r58201 r58211  
    370370    /**
    371371     * @ticket 56922
     372     * @ticket 41172
    372373     *
    373374     * @covers WP_Post_Type::get_autosave_rest_controller
     
    412413            'disable show_in_rest'               => array(
    413414                false,
    414                 'attachment',
    415                 false,
    416                 null,
    417             ),
    418             'invalid post type'                  => array(
    419                 true,
    420                 'attachment',
     415                'test_post_type',
    421416                false,
    422417                null,
Note: See TracChangeset for help on using the changeset viewer.