Docs: Make `@param` tags in `mce_buttons` and related filters consistent with the variable names.
Props upadalavipul, isabel_brison. Fixes #41456. Built from https://develop.svn.wordpress.org/trunk@46675 git-svn-id: http://core.svn.wordpress.org/trunk@46475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4a2dc1a1a2
commit
9088bea749
|
@ -577,16 +577,17 @@ final class _WP_Editors {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $set['teeny'] ) {
|
if ( $set['teeny'] ) {
|
||||||
|
$mce_buttons = array( 'bold', 'italic', 'underline', 'blockquote', 'strikethrough', 'bullist', 'numlist', 'alignleft', 'aligncenter', 'alignright', 'undo', 'redo', 'link', 'fullscreen' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filters the list of teenyMCE buttons (Text tab).
|
* Filters the list of teenyMCE buttons (Text tab).
|
||||||
*
|
*
|
||||||
* @since 2.7.0
|
* @since 2.7.0
|
||||||
*
|
*
|
||||||
* @param array $buttons An array of teenyMCE buttons.
|
* @param array $mce_buttons An array of teenyMCE buttons.
|
||||||
* @param string $editor_id Unique editor identifier, e.g. 'content'.
|
* @param string $editor_id Unique editor identifier, e.g. 'content'.
|
||||||
*/
|
*/
|
||||||
$mce_buttons = apply_filters( 'teeny_mce_buttons', array( 'bold', 'italic', 'underline', 'blockquote', 'strikethrough', 'bullist', 'numlist', 'alignleft', 'aligncenter', 'alignright', 'undo', 'redo', 'link', 'fullscreen' ), $editor_id );
|
$mce_buttons = apply_filters( 'teeny_mce_buttons', $mce_buttons, $editor_id );
|
||||||
$mce_buttons_2 = array();
|
$mce_buttons_2 = array();
|
||||||
$mce_buttons_3 = array();
|
$mce_buttons_3 = array();
|
||||||
$mce_buttons_4 = array();
|
$mce_buttons_4 = array();
|
||||||
|
@ -610,8 +611,8 @@ final class _WP_Editors {
|
||||||
*
|
*
|
||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*
|
*
|
||||||
* @param array $buttons First-row list of buttons.
|
* @param array $mce_buttons First-row list of buttons.
|
||||||
* @param string $editor_id Unique editor identifier, e.g. 'content'.
|
* @param string $editor_id Unique editor identifier, e.g. 'content'.
|
||||||
*/
|
*/
|
||||||
$mce_buttons = apply_filters( 'mce_buttons', $mce_buttons, $editor_id );
|
$mce_buttons = apply_filters( 'mce_buttons', $mce_buttons, $editor_id );
|
||||||
|
|
||||||
|
@ -626,8 +627,8 @@ final class _WP_Editors {
|
||||||
*
|
*
|
||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*
|
*
|
||||||
* @param array $buttons Second-row list of buttons.
|
* @param array $mce_buttons_2 Second-row list of buttons.
|
||||||
* @param string $editor_id Unique editor identifier, e.g. 'content'.
|
* @param string $editor_id Unique editor identifier, e.g. 'content'.
|
||||||
*/
|
*/
|
||||||
$mce_buttons_2 = apply_filters( 'mce_buttons_2', $mce_buttons_2, $editor_id );
|
$mce_buttons_2 = apply_filters( 'mce_buttons_2', $mce_buttons_2, $editor_id );
|
||||||
|
|
||||||
|
@ -636,8 +637,8 @@ final class _WP_Editors {
|
||||||
*
|
*
|
||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*
|
*
|
||||||
* @param array $buttons Third-row list of buttons.
|
* @param array $mce_buttons_3 Third-row list of buttons.
|
||||||
* @param string $editor_id Unique editor identifier, e.g. 'content'.
|
* @param string $editor_id Unique editor identifier, e.g. 'content'.
|
||||||
*/
|
*/
|
||||||
$mce_buttons_3 = apply_filters( 'mce_buttons_3', array(), $editor_id );
|
$mce_buttons_3 = apply_filters( 'mce_buttons_3', array(), $editor_id );
|
||||||
|
|
||||||
|
@ -646,8 +647,8 @@ final class _WP_Editors {
|
||||||
*
|
*
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*
|
*
|
||||||
* @param array $buttons Fourth-row list of buttons.
|
* @param array $mce_buttons_4 Fourth-row list of buttons.
|
||||||
* @param string $editor_id Unique editor identifier, e.g. 'content'.
|
* @param string $editor_id Unique editor identifier, e.g. 'content'.
|
||||||
*/
|
*/
|
||||||
$mce_buttons_4 = apply_filters( 'mce_buttons_4', array(), $editor_id );
|
$mce_buttons_4 = apply_filters( 'mce_buttons_4', array(), $editor_id );
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.4-alpha-46674';
|
$wp_version = '5.4-alpha-46675';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue