Make WordPress Core


Ignore:
Timestamp:
02/07/2020 11:28:22 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve description for the $editor_id parameter of wp_editor() and _WP_Editors::editor().

The restictions mentioned for the parameter value should be consistenct.

Props pbiron, SergeyBiryukov.
Fixes #49384.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r47198 r47210  
    34013401 *
    34023402 * @see _WP_Editors::editor()
     3403 * @see _WP_Editors::parse_settings()
    34033404 * @since 3.3.0
    34043405 *
    34053406 * @param string $content   Initial content for the editor.
    3406  * @param string $editor_id HTML ID attribute value for the textarea and TinyMCE. Can only be /[a-z]+/.
    3407  * @param array  $settings  See _WP_Editors::editor().
     3407 * @param string $editor_id HTML ID attribute value for the textarea and TinyMCE.
     3408 *                          Should not contain square brackets.
     3409 * @param array  $settings  See _WP_Editors::parse_settings() for description.
    34083410 */
    34093411function wp_editor( $content, $editor_id, $settings = array() ) {
Note: See TracChangeset for help on using the changeset viewer.