WordPress.org

Make WordPress Core

Opened 5 years ago

Last modified 15 months ago

#10303 accepted enhancement

Provide better user feedback when content is changed by filters.

Reported by: tott Owned by: tott
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Formatting Keywords: has-patch
Focuses: Cc:

Description

When filtering content via kses, adjusting bad nested xhtml or similar no feedback is given to the user. The content is just stripped and the user is not informed about the changes made and why they happened.

Presenting a diff in the admin message should increase the UX.

Attachments (2)

admin-message-core-wporg.diff (2.0 KB) - added by tott 5 years ago.
core patches needed to implement desired behavior
admin-post-diff.php (2.3 KB) - added by tott 5 years ago.
possible plugin that implements text diff when content is filtered. put in wp-content/plugins/ and activate

Download all attachments as: .zip

Change History (7)

tott5 years ago

core patches needed to implement desired behavior

tott5 years ago

possible plugin that implements text diff when content is filtered. put in wp-content/plugins/ and activate

comment:1 tott5 years ago

  • Owner set to tott
  • Status changed from new to accepted

Attached is a possible solution for this. It relies on some additional actions and filters. I am not sure if this is the best way to get it done and would be happy about some feedback and ideas.

comment:2 ryan5 years ago

I don't think you need do_action_ref_array() here. do_action() seems like it would suffice.

comment:3 Denis-de-Bernardy5 years ago

  • Milestone changed from Unassigned to 2.9

@rboren: probably true, but it's more memory intensive.

comment:4 ryan4 years ago

  • Milestone changed from 2.9 to Future Release

comment:5 DrewAPicture15 months ago

  • Component changed from UI to Formatting
  • Keywords kses embed filters removed

This is almost revisions.

Note: See TracTickets for help on using tickets.