Make WordPress Core

Opened 5 years ago

Last modified 4 years ago

#33120 new enhancement

Editor: Filter for word count type

Reported by: extendwings Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.3
Component: Editor Keywords: has-patch reporter-feedback close
Focuses: Cc:


I think word count type should be switched easily.

Same opinion with https://make.wordpress.org/core/2015/07/23/wordcharacter-count-updates-in-4-3/#comment-26377

Attachments (3)

33120.diff (756 bytes) - added by extendwings 5 years ago.
33120.2.diff (1.1 KB) - added by extendwings 5 years ago.
Add Documentation
33120.3.diff (1.2 KB) - added by extendwings 5 years ago.

Download all attachments as: .zip

Change History (11)

5 years ago

#1 @extendwings
5 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
5 years ago

  • Focuses docs added

The filter needs to be documented as per the documentation standards.

#3 @iseulde
5 years ago

  • Version trunk deleted

5 years ago

Add Documentation

5 years ago

#4 @extendwings
5 years ago

Updated Documentation since allowed values of words has been changed.

@SergeyBiryukov, could you check this documentation?

#5 @extendwings
5 years ago

  • Version set to 4.3

#6 @iseulde
5 years ago

  • Keywords reporter-feedback added

Why not filter the translation for that string?

#7 @DrewAPicture
5 years ago

  • Focuses docs removed

#8 @swissspidy
4 years ago

  • Keywords close added

Word count type is also used in wp_trim_words(). Since it's a translatable string, the pre-existing gettext filter can be used when desired. No need to add a filter around a filter IMHO.

Note: See TracTickets for help on using tickets.