mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Add a filter for wp_editor() settings.
props DH-Shredder, JPry, DrewAPicture. fixes #24472. git-svn-id: https://develop.svn.wordpress.org/trunk@28944 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9ab7f4b144
commit
44f1a76a85
@ -62,7 +62,20 @@ final class _WP_Editors {
|
||||
* @return array Parsed arguments array.
|
||||
*/
|
||||
public static function parse_settings( $editor_id, $settings ) {
|
||||
$set = wp_parse_args( $settings, array(
|
||||
|
||||
/**
|
||||
* Filter the wp_editor() settings.
|
||||
*
|
||||
* @since 4.0.0
|
||||
*
|
||||
* @see _WP_Editors()::parse_settings()
|
||||
*
|
||||
* @param array $settings Array of editor arguments.
|
||||
* @param string $editor_id ID for the current editor instance.
|
||||
*/
|
||||
$defaults = apply_filters( 'wp_editor_settings', $settings, $editor_id );
|
||||
|
||||
$set = wp_parse_args( $settings, array(
|
||||
'wpautop' => true,
|
||||
'media_buttons' => true,
|
||||
'default_editor' => '',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user