Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/27/2024 06:44:41 PM (12 months ago)
Author:
espellcaste
Message:

Require singular and plural names for BuddyPress custom types.

When creating a member or group type, require that both singular and plural names are provided. This ensures that the type can be properly registered and used throughout BuddyPress.

Props 1naveengiri, imath, imranmd.

Fixes #9092
Closes https://github.com/buddypress/buddypress/pull/335/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-functions.php

    r13974 r13983  
    33813381function bp_get_taxonomy_common_labels() {
    33823382    return array(
    3383         'bp_type_name'           => _x( 'Plural Name', 'BP Type name label', 'buddypress' ),
    3384         'bp_type_singular_name'  => _x( 'Singular name', 'BP Type singular name label', 'buddypress' ),
     3383        'bp_type_name'           => _x( 'Plural Name (required)', 'BP Type name label', 'buddypress' ),
     3384        'bp_type_singular_name'  => _x( 'Singular Name (required)', 'BP Type singular name label', 'buddypress' ),
    33853385        'bp_type_has_directory'  => _x( 'Has Directory View', 'BP Type has directory checkbox label', 'buddypress' ),
    33863386        'bp_type_directory_slug' => _x( 'Custom type directory slug', 'BP Type slug label', 'buddypress' ),
Note: See TracChangeset for help on using the changeset viewer.