Skip to:
Content

BuddyPress.org

Ticket #6226: 6226.01.patch

File 6226.01.patch, 504 bytes (added by r-a-y, 11 years ago)
  • src/bp-core/bp-core-functions.php

     
    630630 * @param int $post_id Post ID.
    631631 */
    632632function bp_core_on_directory_page_delete( $post_id ) {
     633        // Stop if we're not on the main BP root blog
     634        if ( ! bp_is_root_blog() ) {
     635                return;
     636        }
     637
    633638        $page_ids = bp_core_get_directory_page_ids();
    634639        $component_name = array_search( $post_id, $page_ids );
    635640