WordPress.org

Make WordPress Core

Ticket #21586: 21586.patch

File 21586.patch, 586 bytes (added by sc0ttkclark, 6 years ago)

Patch for the supports argument to be false, so as to not add support for the defaults

  • trunk/wp-includes/post.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    11531153        if ( ! empty($args->supports) ) {
    11541154                add_post_type_support($post_type, $args->supports);
    11551155                unset($args->supports);
    1156         } else {
     1156        } elseif( false !== $args->supports ) {
    11571157                // Add default features
    11581158                add_post_type_support($post_type, array('title', 'editor'));
    11591159        }