Skip to:
Content

bbPress.org

Changes between Initial Version and Version 1 of Ticket #2949, comment 4


Ignore:
Timestamp:
05/11/2016 12:14:15 AM (5 years ago)
Author:
johnjamesjacoby
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2949, comment 4

    initial v1  
    22> title, content, excerpt, etc. filters in WP are made to be applied to resolve shortcodes etc. There's nothing "dangerous" about them at all - it's quite normal, actually. If you need to expand the $post->post_content for example, you apply 'the_content' filter. The problem is that when you do this on the admin side, *and* bbPress is configured to include the editor, it screws up WP dashicons and the editor.min.css enqueue. I suspect the reason why you couldn't duplicate the problem is that you weren't applying the filter on from an admin post editing page. Try hooking 'admin_init' for your test.
    33
    4 I think you are misunderstanding my question, and it's not really fair to assume/suggest that we don't understand how filters work and are applied.
     4I think you are misunderstanding my question, and it's not really fair to assume/suggest that we don't understand how filters work and are applied. I never said filters were dangerous (though they certainly can be) – I said (paraphrasing now) that using the incorrect ones in the incorrect places can produce undesirable results in an unpredictable filter stack.
    55
    66I understand the end result you've come to. I need to better understand how and why you're getting to this point.