Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #61696, comment 3


Ignore:
Timestamp:
07/18/2024 06:50:14 PM (5 months ago)
Author:
joemcgill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #61696, comment 3

    initial v1  
    55While that would make maintainability a bit easier, it still doesn't allow the same code paths to be tested by the Gutenberg plugin that will be run once the code is synced, since many times the static methods are referenced directly in code, as you rightly point out.
    66
    7 I agree that being able to filter the entire class being used would help here and pointed out `_wp_image_editor_choose` and `rest_get_server` a couple other examples of functions where Core provides filters for overriding entire classes.
     7I agree that being able to filter the entire class being used would help here and pointed out `_wp_image_editor_choose` and `rest_get_server` as a couple of other examples of functions where Core provides filters for overriding entire classes.