WordPress.org

Make WordPress Core

Ticket #25846: 25846.2.diff

File 25846.2.diff, 561 bytes (added by kpdesign, 8 years ago)

Second pass

  • src/wp-admin/post.php

     
    7070                $location = add_query_arg( 'message', 4, get_edit_post_link( $post_id, 'url' ) );
    7171        }
    7272
     73        /**
     74         * Filter the redirect destination URL.
     75         *
     76         * @since 2.9.0
     77         *
     78         * @param string $location The destination URL.
     79         * @param int    $post_id  The post ID.
     80        */
    7381        wp_redirect( apply_filters( 'redirect_post_location', $location, $post_id ) );
    7482        exit;
    7583}