WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 16 months 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:

Description

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 3 years ago.
33120.2.diff (1.1 KB) - added by extendwings 3 years ago.
Add Documentation
33120.3.diff (1.2 KB) - added by extendwings 3 years ago.

Download all attachments as: .zip

Change History (11)

@extendwings
3 years ago

#1 @extendwings
3 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
3 years ago

  • Focuses docs added

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

#3 @iseulde
3 years ago

  • Version trunk deleted

@extendwings
3 years ago

Add Documentation

@extendwings
3 years ago

#4 @extendwings
3 years ago

Updated Documentation since allowed values of words has been changed.

@SergeyBiryukov, could you check this documentation?

#5 @extendwings
3 years ago

  • Version set to 4.3

#6 @iseulde
3 years ago

  • Keywords reporter-feedback added

Why not filter the translation for that string?

#7 @DrewAPicture
2 years ago

  • Focuses docs removed

#8 @swissspidy
16 months 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.