Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/08/2023 06:31:46 AM (17 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/bp-core-functions.php

    r13444 r13449  
    11031103
    11041104/** URI ***********************************************************************/
    1105 
    1106 /**
    1107  * Return the domain for the root blog.
    1108  *
    1109  * Eg: http://example.com OR https://example.com
    1110  *
    1111  * @since 1.0.0
    1112  * @deprecated 12.0.0
    1113  *
    1114  * @return string The domain URL for the blog.
    1115  */
    1116 function bp_core_get_root_domain() {
    1117     _deprecated_function( __FUNCTION__, '12.0.0', 'bp_rewrites_get_root_url()' );
    1118     $domain = bp_rewrites_get_root_url();
    1119 
    1120     /**
    1121      * Filters the domain for the root blog.
    1122      *
    1123      * @since 1.0.1
    1124      * @deprecated 12.0.0 Use {@see 'bp_rewrites_get_root_url'} instead.
    1125      *
    1126      * @param string $domain The domain URL for the blog.
    1127      */
    1128     return apply_filters_deprecated( 'bp_core_get_root_domain', array( $domain ), '12.0.0', 'bp_rewrites_get_root_url' );
    1129 }
    11301105
    11311106/**
Note: See TracChangeset for help on using the changeset viewer.