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-core/deprecated/12.0.php

    r13468 r13471  
    626626    do_action_deprecated( 'bp_blogs_blog_tabs', array(), '12.0.0' );
    627627}
     628
     629/**
     630 * Dedicated filter to inform about BP components directory page states.
     631 *
     632 * @since 10.0.0
     633 * @deprecated 12.0.0
     634 *
     635 * @param string[] $post_states An array of post display states.
     636 * @param WP_Post  $post        The current post object.
     637 */
     638function bp_admin_display_directory_states( $post_states = array(), $post = null ) {
     639    $states = array();
     640
     641    /**
     642     * Filter here to add BP Directory pages.
     643     *
     644     * Used internaly by BP_Component->admin_directory_states(). Please use the dynamic
     645     * filter in BP_Component->admin_directory_states() to edit the directory state
     646     * according to the component's ID.
     647     *
     648     * @since 10.0.0
     649     * @deprecated 12.0.0
     650     *
     651     * @param array    $states An empty array.
     652     * @param WP_Post  $post   The current post object.
     653     */
     654    $directory_page_states = apply_filters_deprecated( 'bp_admin_display_directory_states', array( $states, $post ), '12.0.0' );
     655
     656    if ( $directory_page_states ) {
     657        $post_states = array_merge( $post_states, $directory_page_states );
     658    }
     659
     660    return $post_states;
     661}
Note: See TracChangeset for help on using the changeset viewer.