Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #51258, comment 5


Ignore:
Timestamp:
11/26/2020 11:40:30 AM (3 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51258, comment 5

    initial v1  
    55> A `replaced_editor` action would be used to render markup and scripts for a completely different editor.
    66
    7 Right, an action would solve the problem with the "missing" `edit-form-advanced.php` when `replace_editor` returns true. There are some caveats though. As mentioned `admin-footer.php` is still included, but `admin-header.php` is not. Also thinks like `$current_screen->is_block_editor( false );`, missing PHP globals like `$post_ID`, etc. Perhaps adding a big, nice docblock would help somewhat.
     7Right, an action would solve the problem with the "missing" `edit-form-advanced.php` when `replace_editor` returns true. There are some caveats though. As mentioned `admin-footer.php` is still included, but `admin-header.php` is not. Also things like `$current_screen->is_block_editor( false );`, missing PHP globals like `$post_ID`, etc. Perhaps adding a big, nice docblock would help somewhat.