Make WordPress Core

Ticket #24472: 24472.3.diff

File 24472.3.diff, 881 bytes (added by DrewAPicture, 11 years ago)
  • src/wp-includes/class-wp-editor.php

     
    6262         * @return array Parsed arguments array.
    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,
    6881                        'default_editor'    => '',