[wp-trac] [WordPress Trac] #41917: Exclude more shortcodes in word counter
WordPress Trac
noreply at wordpress.org
Mon Sep 18 21:27:21 UTC 2017
#41917: Exclude more shortcodes in word counter
--------------------------+-----------------------
Reporter: ocean90 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.9
Component: Editor | Version: 4.3
Severity: normal | Keywords: has-patch
Focuses: |
--------------------------+-----------------------
Since #27386 shortcodes are ignored in the word counter. But due to the
way how shortcodes are passed to JavaScript the counter only ignores
shortcodes which are registered before the `init` hook (or with a lower
priority on `init`).
Attached patch moves the localization into
`wp_just_in_time_script_localization()` to get access to ''all''
shortcodes.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41917>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list