Changeset 12996 for trunk/src/bp-members/bp-members-blocks.php
- Timestamp:
- 07/12/2021 11:57:59 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/bp-members-blocks.php
r12791 r12996 12 12 exit; 13 13 } 14 15 /**16 * Add BP Members blocks specific settings to the BP Blocks Editor ones.17 *18 * @since 6.0.019 *20 * @param array $bp_editor_settings BP blocks editor settings.21 * @return array BP Members blocks editor settings.22 */23 function bp_members_editor_settings( $bp_editor_settings = array() ) {24 $bp = buddypress();25 26 return array_merge(27 $bp_editor_settings,28 array(29 'members' => array(30 'isMentionEnabled' => bp_is_active( 'activity' ) && bp_activity_do_mentions(),31 'isAvatarEnabled' => $bp->avatar && $bp->avatar->show_avatars,32 'isCoverImageEnabled' => bp_is_active( 'members', 'cover_image' ),33 ),34 )35 );36 }37 add_filter( 'bp_blocks_editor_settings', 'bp_members_editor_settings' );38 14 39 15 /** … … 261 237 '<div class="item-header-avatar"> 262 238 <a href="%1$s"> 263 <img class="avatar" alt="%2$s" src="%3$s" />239 <img loading="lazy" class="avatar" alt="%2$s" src="%3$s" /> 264 240 </a> 265 241 </div>',
Note: See TracChangeset
for help on using the changeset viewer.