Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #45282


Ignore:
Timestamp:
11/05/2018 02:33:38 AM (6 years ago)
Author:
pento
Comment:

45282.diff removes the enableCustomFields setting from the editor settings, based on whether the Custom Fields meta box exists or not.

It can be tested with this snippet:

<?php
add_action( 'add_meta_boxes', function() {
        remove_meta_box( 'postcustom', false, 'normal' );
} );

This patch requires changes in the relevant @wordpress package to hide the option when enableCustomFields is undefined.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #45282

    • Property Keywords has-patch added
  • Ticket #45282 – Description

    initial v1  
    22
    33When this is the case, the block editor Options dialog shouldn't show an option to display the Custom Fields meta box.
     4
     5Related: [https://github.com/WordPress/gutenberg/issues/11386 GB11386].