Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/27/2023 11:01:08 AM (20 months ago)
Author:
imath
Message:

BP Nouveau: remove the Avatar style Customizer option

Letting the theme deal with avatar style, so that it's rendered consistently everywhere on the site, is a better option.

Props iamthewebb

Fixes 8273
Closes https://github.com/buddypress/buddypress/pull/141

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/customizer.php

    r13145 r13529  
    44 *
    55 * @since 3.0.0
    6  * @version 10.0.0
     6 * @version 12.0.0
    77 */
    88
     
    8383     */
    8484    $settings = apply_filters( 'bp_nouveau_customizer_settings', array(
    85         'bp_nouveau_appearance[avatar_style]' => array(
    86             'index'             => 'avatar_style',
    87             'capability'        => 'bp_moderate',
    88             'sanitize_callback' => 'absint',
    89             'transport'         => 'refresh',
    90             'type'              => 'option',
    91         ),
    9285        'bp_nouveau_appearance[user_front_page]' => array(
    9386            'index'             => 'user_front_page',
     
    228221
    229222    $controls = array(
    230         'bp_site_avatars' => array(
    231             'label'      => __( 'Use the round style for member and group avatars.', 'buddypress' ),
    232             'section'    => 'bp_nouveau_general_settings',
    233             'settings'   => 'bp_nouveau_appearance[avatar_style]',
    234             'type'       => 'checkbox',
    235         ),
    236223        'user_front_page' => array(
    237224            'label'      => __( 'Enable default front page for member profiles.', 'buddypress' ),
Note: See TracChangeset for help on using the changeset viewer.