Make WordPress Core

Changeset 28944


Ignore:
Timestamp:
07/01/2014 11:02:58 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Add a filter for wp_editor() settings.

props DH-Shredder, JPry, DrewAPicture.
fixes #24472.

File:
1 edited

Legend:

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

    r28568 r28944  
    6363     */
    6464    public static function parse_settings( $editor_id, $settings ) {
    65         $set = wp_parse_args( $settings,  array(
     65
     66        /**
     67         * Filter the wp_editor() settings.
     68         *
     69         * @since 4.0.0
     70         *
     71         * @see _WP_Editors()::parse_settings()
     72         *
     73         * @param array  $settings  Array of editor arguments.
     74         * @param string $editor_id ID for the current editor instance.
     75         */
     76        $defaults = apply_filters( 'wp_editor_settings', $settings, $editor_id );
     77
     78        $set = wp_parse_args( $settings, array(
    6679            'wpautop'           => true,
    6780            'media_buttons'     => true,
Note: See TracChangeset for help on using the changeset viewer.