Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#32521 closed enhancement (fixed)

Document First Call to wptexturize()

Reported by: miqrogroove's profile miqrogroove Owned by: miqrogroove's profile miqrogroove
Milestone: 4.3 Priority: normal
Severity: normal Version:
Component: Formatting Keywords: wptexturize has-patch
Focuses: docs Cc:

Description

Following up to #32380 with a quick search of documents found no obvious clues as to when a plugin is allowed to call wptexturize().

Under the hood, I can see that due to extensive use of static variables, it is important plugin authors don't trigger the function before the translation function _x() is initialized.

This needs a small documentation improvement.

Attachments (1)

miqro-32521.diff (487 bytes) - added by miqrogroove 8 years ago.

Download all attachments as: .zip

Change History (5)

#1 @miqrogroove
8 years ago

  • Keywords has-patch added; needs-patch needs-codex removed

This ticket was mentioned in Slack in #docs by miqrogroove. View the logs.


8 years ago

#3 @miqrogroove
8 years ago

  • Owner set to miqrogroove
  • Status changed from new to assigned

#4 @wonderboymusic
8 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 32790:

Add a note to wptexturize() docs.

Props miqrogroove.
Fixes #32521.

Note: See TracTickets for help on using tickets.