[wp-trac] [WordPress Trac] #41917: Exclude more shortcodes in word counter

WordPress Trac noreply at wordpress.org
Thu Oct 12 05:09:12 UTC 2017


#41917: Exclude more shortcodes in word counter
--------------------------+---------------------
 Reporter:  ocean90       |       Owner:  pento
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.9
Component:  Editor        |     Version:  4.3
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------
Changes (by pento):

 * owner:   => pento
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"41844"]:
 {{{
 #!CommitTicketReference repository="" revision="41844"
 Editor: Improve the accuracy of the list of shortcodes that the word count
 ignores.

 Previously, shortcodes were being counted when the `init` action fired,
 even though it's possible for shortcodes to be registered later than that.

 By leaving the counting until just before the script is printed, we get a
 more accurate list of shortcodes.

 Props ocean90.
 Fixes #41917.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41917#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list