Skip to:
Content

BuddyPress.org

Ticket #6365: 6365.01.patch

File 6365.01.patch, 864 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 updated in the Network Admin area.
     413 *
     414 * @since BuddyPress (2.3.0)
     415 *
     416 * @access private
     417 */
     418function _bp_blogs_delete_url_blogmeta_on_network_admin_edit() {
     419        if ( ! empty( $_GET['action'] ) && 'update-site' == $_GET['action'] ) {
     420                bp_blogs_delete_blogmeta( (int) $_POST['id'], 'url' );
     421        }
     422}
     423add_action( 'load-site-info.php', '_bp_blogs_delete_url_blogmeta_on_network_admin_edit' );
     424
     425/**
    412426 * Record activity metadata about a published blog post.
    413427 *
    414428 * @since BuddyPress (2.2.0)