Make WordPress Core

Changeset 46675 for trunk


Ignore:
Timestamp:
11/07/2019 07:10:38 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Make @param tags in mce_buttons and related filters consistent with the variable names.

Props upadalavipul, isabel_brison.
Fixes #41456.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r46386 r46675  
    578578
    579579            if ( $set['teeny'] ) {
     580                $mce_buttons = array( 'bold', 'italic', 'underline', 'blockquote', 'strikethrough', 'bullist', 'numlist', 'alignleft', 'aligncenter', 'alignright', 'undo', 'redo', 'link', 'fullscreen' );
    580581
    581582                /**
     
    584585                 * @since 2.7.0
    585586                 *
    586                  * @param array  $buttons  An array of teenyMCE buttons.
    587                  * @param string $editor_id Unique editor identifier, e.g. 'content'.
     587                 * @param array  $mce_buttons An array of teenyMCE buttons.
     588                 * @param string $editor_id   Unique editor identifier, e.g. 'content'.
    588589                 */
    589                 $mce_buttons   = apply_filters( 'teeny_mce_buttons', array( 'bold', 'italic', 'underline', 'blockquote', 'strikethrough', 'bullist', 'numlist', 'alignleft', 'aligncenter', 'alignright', 'undo', 'redo', 'link', 'fullscreen' ), $editor_id );
     590                $mce_buttons   = apply_filters( 'teeny_mce_buttons', $mce_buttons, $editor_id );
    590591                $mce_buttons_2 = array();
    591592                $mce_buttons_3 = array();
     
    611612                 * @since 2.0.0
    612613                 *
    613                  * @param array  $buttons  First-row list of buttons.
    614                  * @param string $editor_id Unique editor identifier, e.g. 'content'.
     614                 * @param array  $mce_buttons First-row list of buttons.
     615                 * @param string $editor_id   Unique editor identifier, e.g. 'content'.
    615616                 */
    616617                $mce_buttons = apply_filters( 'mce_buttons', $mce_buttons, $editor_id );
     
    627628                 * @since 2.0.0
    628629                 *
    629                  * @param array  $buttons  Second-row list of buttons.
    630                  * @param string $editor_id Unique editor identifier, e.g. 'content'.
     630                 * @param array  $mce_buttons_2 Second-row list of buttons.
     631                 * @param string $editor_id     Unique editor identifier, e.g. 'content'.
    631632                 */
    632633                $mce_buttons_2 = apply_filters( 'mce_buttons_2', $mce_buttons_2, $editor_id );
     
    637638                 * @since 2.0.0
    638639                 *
    639                  * @param array  $buttons  Third-row list of buttons.
    640                  * @param string $editor_id Unique editor identifier, e.g. 'content'.
     640                 * @param array  $mce_buttons_3 Third-row list of buttons.
     641                 * @param string $editor_id     Unique editor identifier, e.g. 'content'.
    641642                 */
    642643                $mce_buttons_3 = apply_filters( 'mce_buttons_3', array(), $editor_id );
     
    647648                 * @since 2.5.0
    648649                 *
    649                  * @param array  $buttons  Fourth-row list of buttons.
    650                  * @param string $editor_id Unique editor identifier, e.g. 'content'.
     650                 * @param array  $mce_buttons_4 Fourth-row list of buttons.
     651                 * @param string $editor_id     Unique editor identifier, e.g. 'content'.
    651652                 */
    652653                $mce_buttons_4 = apply_filters( 'mce_buttons_4', array(), $editor_id );
Note: See TracChangeset for help on using the changeset viewer.