Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/08/2023 06:31:46 AM (22 months ago)
Author:
imath
Message:

Make sure all Groups component URLs are built using BP rewrites API

  • Introduce the bp_groups_get_create_url() to ease Groups create URLs generation.
  • Improve bp_groups_get_path_chunks() to deal with front-end group admin URLs and the Groups create URLs.
  • Deprecate bp_get_groups_directory_permalink() in favor of bp_get_groups_directory_url().
  • Replace all remaining deprecated functions usage.
  • Start putting deprecated functions behind a function_exists( 'bp_classic' ) check, corresponding functions were added inside the BP Classic backcompat plugin.
  • Adjust some Groups routing unit tests.

Props r-a-y, johnjamesjacoby, boonebgorges

Closes https://github.com/buddypress/buddypress/pull/83
See #4954

File:
1 edited

Legend:

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

    r13433 r13449  
    513513     * @param array $settings_tabs The BP Admin settings tabs.
    514514     */
    515     return apply_filters( 'bp_core_get_admin_settings_tabs', $settings_tabs );
     515    $settings_tabs = apply_filters( 'bp_core_get_admin_settings_tabs', $settings_tabs );
     516
     517    // Sort tabs before returning it.
     518    ksort( $settings_tabs );
     519
     520    return $settings_tabs;
    516521}
    517522
     
    559564     * @param array $tools_tabs The BP Admin tools tabs.
    560565     */
    561     return apply_filters( 'bp_core_get_admin_tools_tabs', $tools_tabs );
     566    $tools_tabs = apply_filters( 'bp_core_get_admin_tools_tabs', $tools_tabs );
     567
     568    // Sort tabs before returning it.
     569    ksort( $tools_tabs );
     570
     571    return $tools_tabs;
    562572}
    563573
Note: See TracChangeset for help on using the changeset viewer.