WordPress.org

Make WordPress Core

Changeset 25282


Ignore:
Timestamp:
09/06/2013 05:00:30 PM (8 years ago)
Author:
nacin
Message:

Document comment_edit_redirect.

props dustyf.
see #25229.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/comment.php

    r19856 r25282  
    280280
    281281    $location = ( empty( $_POST['referredby'] ) ? "edit-comments.php?p=$comment_post_id" : $_POST['referredby'] ) . '#comment-' . $comment_id;
     282   
     283    /**
     284     * Filter the URI the user is redirected to after editing a comment in the admin.
     285     *
     286     * @since 2.1.0
     287     *
     288     * @param string $location The URI the user will be redirected to.
     289     * @param int $comment_id The ID of the comment being edited.
     290     */
    282291    $location = apply_filters( 'comment_edit_redirect', $location, $comment_id );
    283292    wp_redirect( $location );
Note: See TracChangeset for help on using the changeset viewer.