Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/24/2023 02:56:05 AM (10 months ago)
Author:
imath
Message:

Administration: improve URLs settings tab specific page sections

Differentiate specific pages (activate/register) from directories using the "Page" labelling in corresponding sections.

Props vapvarun

Fixes #8979
Closes https://github.com/buddypress/buddypress/pull/154

File:
1 edited

Legend:

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

    r13468 r13555  
    158158                            <h4 class="health-check-accordion-heading">
    159159                                <button aria-expanded="false" class="health-check-accordion-trigger" aria-controls="health-check-accordion-block-<?php echo esc_attr( $component_id ); ?>-directory" type="button">
    160                                     <span class="title"><?php esc_html_e( 'Directory', 'buddypress' ); ?></span>
     160                                    <span class="title"><?php ( 'activate' === $component_id || 'register' === $component_id ) ? esc_html_e( 'Page', 'buddypress' ) : esc_html_e( 'Directory', 'buddypress' ); ?></span>
    161161                                    <span class="icon"></span>
    162162                                </button>
     
    167167                                        <th scope="row">
    168168                                            <label for="<?php echo esc_attr( sprintf( '%s-directory-title', sanitize_key( $component_id ) ) ); ?>">
    169                                                 <?php esc_html_e( 'Directory title', 'buddypress' ); ?>
     169                                                <?php ( 'activate' === $component_id || 'register' === $component_id ) ? esc_html_e( 'Page title', 'buddypress' ) : esc_html_e( 'Directory title', 'buddypress' ); ?>
    170170                                            </label>
    171171                                        </th>
     
    177177                                        <th scope="row">
    178178                                            <label for="<?php echo esc_attr( sprintf( '%s-directory-slug', sanitize_key( $component_id ) ) ); ?>">
    179                                                 <?php esc_html_e( 'Directory slug', 'buddypress' ); ?>
     179                                                <?php ( 'activate' === $component_id || 'register' === $component_id ) ? esc_html_e( 'Page slug', 'buddypress' ) : esc_html_e( 'Directory slug', 'buddypress' ); ?>
    180180                                            </label>
    181181                                        </th>
Note: See TracChangeset for help on using the changeset viewer.