Skip to:
Content

BuddyPress.org

Ticket #6722: 6722.02.patch

File 6722.02.patch, 1.2 KB (added by imath, 10 years ago)
  • src/bp-xprofile/classes/class-bp-xprofile-field-type-textarea.php

    diff --git src/bp-xprofile/classes/class-bp-xprofile-field-type-textarea.php src/bp-xprofile/classes/class-bp-xprofile-field-type-textarea.php
    index 041e2e7..fec1d6d 100644
    class BP_XProfile_Field_Type_Textarea extends BP_XProfile_Field_Type { 
    9797                         *     @type bool $media_buttons Whether to show media buttons. Default false.
    9898                         *     @type bool $quicktags     Whether to show the quicktags buttons. Default true.
    9999                         * }
     100                         * @param string $value the context of display of the Textarea Editor ('edit' or 'admin')
    100101                         */
    101102                        $editor_args = apply_filters( 'bp_xprofile_field_type_textarea_editor_args', array(
    102103                                'teeny'         => true,
    103104                                'media_buttons' => false,
    104105                                'quicktags'     => true,
    105                         ) );
     106                        ), 'edit' );
    106107
    107108                        wp_editor(
    108109                                bp_get_the_profile_field_edit_value(),
    class BP_XProfile_Field_Type_Textarea extends BP_XProfile_Field_Type { 
    141142                                'teeny'         => true,
    142143                                'media_buttons' => false,
    143144                                'quicktags'     => true,
    144                         ) );
     145                                'textarea_rows' => 1,
     146                        ), 'admin' );
    145147
    146148                        wp_editor(
    147149                                '',