Index: src/wp-includes/post.php
===================================================================
--- src/wp-includes/post.php	(revision 57367)
+++ src/wp-includes/post.php	(working copy)
@@ -569,7 +569,8 @@
 		array(
 			'label'       => _x( 'Published', 'post status' ),
 			'public'      => true,
-			'_builtin'    => true, /* internal use only. */
+			'_builtin'    => true, /*
+		internal use only. */
 			/* translators: %s: Number of published posts. */
 			'label_count' => _n_noop(
 				'Published <span class="count">(%s)</span>',
@@ -583,7 +584,8 @@
 		array(
 			'label'       => _x( 'Scheduled', 'post status' ),
 			'protected'   => true,
-			'_builtin'    => true, /* internal use only. */
+			'_builtin'    => true, /*
+		internal use only. */
 			/* translators: %s: Number of scheduled posts. */
 			'label_count' => _n_noop(
 				'Scheduled <span class="count">(%s)</span>',
@@ -597,7 +599,8 @@
 		array(
 			'label'         => _x( 'Draft', 'post status' ),
 			'protected'     => true,
-			'_builtin'      => true, /* internal use only. */
+			'_builtin'      => true, /*
+		internal use only. */
 			/* translators: %s: Number of draft posts. */
 			'label_count'   => _n_noop(
 				'Draft <span class="count">(%s)</span>',
@@ -612,7 +615,8 @@
 		array(
 			'label'         => _x( 'Pending', 'post status' ),
 			'protected'     => true,
-			'_builtin'      => true, /* internal use only. */
+			'_builtin'      => true, /*
+		internal use only. */
 			/* translators: %s: Number of pending posts. */
 			'label_count'   => _n_noop(
 				'Pending <span class="count">(%s)</span>',
@@ -627,7 +631,8 @@
 		array(
 			'label'       => _x( 'Private', 'post status' ),
 			'private'     => true,
-			'_builtin'    => true, /* internal use only. */
+			'_builtin'    => true, /*
+		internal use only. */
 			/* translators: %s: Number of private posts. */
 			'label_count' => _n_noop(
 				'Private <span class="count">(%s)</span>',
@@ -641,7 +646,8 @@
 		array(
 			'label'                     => _x( 'Trash', 'post status' ),
 			'internal'                  => true,
-			'_builtin'                  => true, /* internal use only. */
+			'_builtin'                  => true, /*
+		internal use only. */
 			/* translators: %s: Number of trashed posts. */
 			'label_count'               => _n_noop(
 				'Trash <span class="count">(%s)</span>',
@@ -676,7 +682,8 @@
 		array(
 			'label'               => _x( 'Pending', 'request status' ),
 			'internal'            => true,
-			'_builtin'            => true, /* internal use only. */
+			'_builtin'            => true, /*
+		internal use only. */
 			/* translators: %s: Number of pending requests. */
 			'label_count'         => _n_noop(
 				'Pending <span class="count">(%s)</span>',
@@ -691,7 +698,8 @@
 		array(
 			'label'               => _x( 'Confirmed', 'request status' ),
 			'internal'            => true,
-			'_builtin'            => true, /* internal use only. */
+			'_builtin'            => true, /*
+		internal use only. */
 			/* translators: %s: Number of confirmed requests. */
 			'label_count'         => _n_noop(
 				'Confirmed <span class="count">(%s)</span>',
@@ -706,7 +714,8 @@
 		array(
 			'label'               => _x( 'Failed', 'request status' ),
 			'internal'            => true,
-			'_builtin'            => true, /* internal use only. */
+			'_builtin'            => true, /*
+		internal use only. */
 			/* translators: %s: Number of failed requests. */
 			'label_count'         => _n_noop(
 				'Failed <span class="count">(%s)</span>',
@@ -721,7 +730,8 @@
 		array(
 			'label'               => _x( 'Completed', 'request status' ),
 			'internal'            => true,
-			'_builtin'            => true, /* internal use only. */
+			'_builtin'            => true, /*
+		internal use only. */
 			/* translators: %s: Number of completed requests. */
 			'label_count'         => _n_noop(
 				'Completed <span class="count">(%s)</span>',
@@ -4376,8 +4386,9 @@
 		 * @param bool   $add_trashed_suffix Whether to attempt to add the suffix.
 		 * @param string $post_name          The name of the post being updated.
 		 * @param int    $post_id            Post ID.
+		 * @param array $unsanitized_postarr An array of unsanitized post data.
 		 */
-		$add_trashed_suffix = apply_filters( 'add_trashed_suffix_to_trashed_posts', true, $post_name, $post_id );
+		$add_trashed_suffix = apply_filters( 'add_trashed_suffix_to_trashed_posts', true, $post_name, $post_id, $unsanitized_postarr );
 
 		if ( $add_trashed_suffix ) {
 			wp_add_trashed_suffix_to_post_name_for_trashed_posts( $post_name, $post_id );
@@ -4474,8 +4485,9 @@
 		 *
 		 * @param int   $post_id Post ID.
 		 * @param array $data    Array of unslashed post data.
+		 * @param array $unsanitized_postarr An array of unsanitized post data.
 		 */
-		do_action( 'pre_post_update', $post_id, $data );
+		do_action( 'pre_post_update', $post_id, $data, $unsanitized_postarr );
 
 		if ( false === $wpdb->update( $wpdb->posts, $data, $where ) ) {
 			if ( $wp_error ) {
@@ -4658,8 +4670,9 @@
 			 * @since 2.0.0
 			 *
 			 * @param int $post_id Attachment ID.
+			 * @param array $unsanitized_postarr An array of unsanitized post data.
 			 */
-			do_action( 'edit_attachment', $post_id );
+			do_action( 'edit_attachment', $post_id, $unsanitized_postarr );
 
 			$post_after = get_post( $post_id );
 
@@ -4671,8 +4684,9 @@
 			 * @param int     $post_id      Post ID.
 			 * @param WP_Post $post_after   Post object following the update.
 			 * @param WP_Post $post_before  Post object before the update.
+			 * @param array $unsanitized_postarr An array of unsanitized post data.
 			 */
-			do_action( 'attachment_updated', $post_id, $post_after, $post_before );
+			do_action( 'attachment_updated', $post_id, $post_after, $post_before, $unsanitized_postarr );
 		} else {
 
 			/**
@@ -4681,8 +4695,9 @@
 			 * @since 2.0.0
 			 *
 			 * @param int $post_id Attachment ID.
+			 * @param array $unsanitized_postarr An array of unsanitized post data.
 			 */
-			do_action( 'add_attachment', $post_id );
+			do_action( 'add_attachment', $post_id, $unsanitized_postarr );
 		}
 
 		return $post_id;
@@ -4704,8 +4719,9 @@
 		 *
 		 * @param int     $post_id Post ID.
 		 * @param WP_Post $post    Post object.
+		 * @param array $unsanitized_postarr An array of unsanitized post data.
 		 */
-		do_action( "edit_post_{$post->post_type}", $post_id, $post );
+		do_action( "edit_post_{$post->post_type}", $post_id, $post, $unsanitized_postarr );
 
 		/**
 		 * Fires once an existing post has been updated.
@@ -4714,8 +4730,9 @@
 		 *
 		 * @param int     $post_id Post ID.
 		 * @param WP_Post $post    Post object.
+		 * @param array $unsanitized_postarr An array of unsanitized post data.
 		 */
-		do_action( 'edit_post', $post_id, $post );
+		do_action( 'edit_post', $post_id, $post, $unsanitized_postarr );
 
 		$post_after = get_post( $post_id );
 
@@ -4727,8 +4744,9 @@
 		 * @param int     $post_id      Post ID.
 		 * @param WP_Post $post_after   Post object following the update.
 		 * @param WP_Post $post_before  Post object before the update.
+		 * @param array $unsanitized_postarr An array of unsanitized post data.
 		 */
-		do_action( 'post_updated', $post_id, $post_after, $post_before );
+		do_action( 'post_updated', $post_id, $post_after, $post_before, $unsanitized_postarr );
 	}
 
 	/**
@@ -4747,8 +4765,9 @@
 	 * @param int     $post_id Post ID.
 	 * @param WP_Post $post    Post object.
 	 * @param bool    $update  Whether this is an existing post being updated.
+	 * @param array $unsanitized_postarr An array of unsanitized post data.
 	 */
-	do_action( "save_post_{$post->post_type}", $post_id, $post, $update );
+	do_action( "save_post_{$post->post_type}", $post_id, $post, $update, $unsanitized_postarr );
 
 	/**
 	 * Fires once a post has been saved.
@@ -4758,8 +4777,9 @@
 	 * @param int     $post_id Post ID.
 	 * @param WP_Post $post    Post object.
 	 * @param bool    $update  Whether this is an existing post being updated.
+	 * @param array $unsanitized_postarr An array of unsanitized post data.
 	 */
-	do_action( 'save_post', $post_id, $post, $update );
+	do_action( 'save_post', $post_id, $post, $update, $unsanitized_postarr );
 
 	/**
 	 * Fires once a post has been saved.
@@ -4769,8 +4789,9 @@
 	 * @param int     $post_id Post ID.
 	 * @param WP_Post $post    Post object.
 	 * @param bool    $update  Whether this is an existing post being updated.
+	 * @param array $unsanitized_postarr An array of unsanitized post data.
 	 */
-	do_action( 'wp_insert_post', $post_id, $post, $update );
+	do_action( 'wp_insert_post', $post_id, $post, $update, $unsanitized_postarr );
 
 	if ( $fire_after_hooks ) {
 		wp_after_insert_post( $post, $update, $post_before );
