Skip to:
Content

BuddyPress.org

Ticket #6365: 6365.02.patch

File 6365.02.patch, 852 bytes (added by r-a-y, 7 years ago)
  • src/bp-blogs/bp-blogs-functions.php

     
    409409add_action( 'update_option_thread_comments_depth', 'bp_blogs_update_option_thread_comments_depth', 10, 2 );
    410410
    411411/**
     412 * Deletes the 'url' blogmeta for a site.
     413 *
     414 * Hooked to 'refresh_blog_details', which is notably used when editing a site
     415 * under "Network Admin > Sites".
     416 *
     417 * @since BuddyPress (2.3.0)
     418 *
     419 * @param int $site_id The site ID
     420 */
     421function bp_blogs_delete_url_blogmeta( $site_id = 0 ) {
     422        bp_blogs_delete_blogmeta( (int) $site_id, 'url' );
     423}
     424add_action( 'refresh_blog_details', 'bp_blogs_delete_url_blogmeta' );
     425
     426/**
    412427 * Record activity metadata about a published blog post.
    413428 *
    414429 * @since BuddyPress (2.2.0)