Skip to:
Content

BuddyPress.org

Ticket #7409: 7409-2.diff

File 7409-2.diff, 1.1 KB (added by jdgrimes, 7 years ago)

Correct the copy-pasted action arg description

  • src/bp-core/bp-core-attachments.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    14231423
    14241424        // Handle delete.
    14251425        if ( bp_attachments_delete_file( array( 'item_id' => $cover_image_data['item_id'], 'object_dir' => $dir, 'type' => 'cover-image' ) ) ) {
     1426                /**
     1427                 * Fires if the cover image was successfully deleted.
     1428                 *
     1429                 * The dynamic portion of the hook will be xprofile in case of a user's
     1430                 * cover image, groups in case of a group's cover image. For instance:
     1431                 * Use add_action( 'xprofile_cover_image_deleted' ) to run your specific
     1432                 * code once the user has deleted his cover image.
     1433                 *
     1434                 * @since 2.8.0
     1435                 *
     1436                 * @param int $item_id Inform about the item id the cover image was deleted for.
     1437                 */
     1438                do_action( "{$component}_cover_image_deleted", (int) $cover_image_data['item_id'] );
    14261439
    14271440                // Defaults no cover image.
    14281441                $response = array(