[wp-trac] [WordPress Trac] #49384: incorrect description for $editor_id param to wp_editor()
WordPress Trac
noreply at wordpress.org
Fri Feb 7 17:18:34 UTC 2020
#49384: incorrect description for $editor_id param to wp_editor()
--------------------------+-----------------------------
Reporter: pbiron | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version:
Severity: normal | Keywords: 2nd-opinion
Focuses: docs |
--------------------------+-----------------------------
The description for `$editor_id` says:
> HTML ID attribute value for the textarea and TinyMCE. Can only be
/[a-z]+/.
While `$editor_id` can't contain a `[` character (introduced in [27950],
which does a `_deprecated_argument()` call), as far as I can tell, there
are no other restrictions on `$editor_id` as long as it is a legal value
for an HTML `@id`.
Additionally, `wp_editor()` passes `$editor_id` on to
`_WP_Editors::editor()`, and the description for `$editor_id` param for
that method specifies a different restriction on the legal values for it:
> ID for the textarea and TinyMCE and Quicktags instances (can contain
only ASCII letters and numbers).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49384>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list