Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #45150, comment 1


Ignore:
Timestamp:
10/23/2018 10:42:15 AM (8 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #45150, comment 1

    initial v1  
    1 This seems a classic case of "doing it wrong" :) There is already a much more suitable filter, `'the_editor'`, for outputting HTML that has to appear together with the editor HTML.
     1This seems a classic case of "doing it wrong" :) There is already a much more suitable filter, `'the_editor'`, for outputting HTML that has to appear together with the editor HTML. There are also a bunch of actions in edit-form-advanced.php that can be used.
    22
    33IMHO the proper thing to do here it to capture the output when the init array filters run, and if anything was outputted throw a "Doing it wrong" warning. That will fix unwanted HTML appearing at random places.