Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/07/2023 11:36:50 AM (12 months ago)
Author:
imath
Message:

BP Rewrites merge process, final touches

This commit is closing the main ticket about migrating our Legacy URL parser to using the WP Rewrite API. Please open next possible issues in new tickets.

The final touches:

  • Make sure BP Activity Embeds are fully supported when using the BP Rewrites API.
  • Make sure BuddyPress directories are fetched into the Site Editor's Navigation block.
  • Deprecate bp_admin_display_directory_states() and move the BP Page directory states feature into the BP Classic backcompat plugin.
  • Remove the Page settings Admin help tab & move it into BP Classic
  • Introduce the bp_core_include_directory_on_front() in order to maintain the possibility to use a BP Directory page as the site's home page.

Props r-a-y, johnjamesjacoby, boonebgorges

Closes https://github.com/buddypress/buddypress/pull/95
Fixes #4954

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-embeds.php

    r12757 r13471  
    348348    do_action( 'bp_activity_embed_after_media' );
    349349}
     350
     351/**
     352 * Make sure the Activity embed template will be used if neded.
     353 *
     354 * @since 12.0.0
     355 *
     356 * @param WP_Query $query Required.
     357 */
     358function bp_activity_parse_embed_query( $query ) {
     359    if ( bp_is_single_activity() && $query->get( 'embed' ) ) {
     360        $query->is_embed = true;
     361    }
     362}
     363add_action( 'bp_members_parse_query', 'bp_activity_parse_embed_query', 10, 1 );
Note: See TracChangeset for help on using the changeset viewer.