mundschenk-at / wp-typography

Improve your WordPress micro typography.
https://code.mundschenk.at/wp-typography/
Other
22 stars 3 forks source link

Content filters cannot be removed via the API #284

Closed mundschenk-at closed 4 years ago

mundschenk-at commented 4 years ago

Reported in the WordPress.org support forums: The the_content filter cannot be removed by remove_filter( 'the_content', [ WP_Typography::get_instance(), 'process' ], 9999 );

mundschenk-at commented 4 years ago

The underlying issue is that due to changes to various type hints from the WP_Typography class to WP_Typography\Implementation, several instances of this supposed singleton are created.