diff --git a/wp-admin/post.php b/wp-admin/post.php index 5333b5f306..b9a3026581 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -275,6 +275,17 @@ case 'preview': exit(); default: + /** + * Fires for a given custom post action request. + * + * The dynamic portion of the hook name, `$action`, refers to the custom post action. + * + * @since 4.6.0 + * + * @param int $post_id Post ID sent with the request. + */ + do_action( "post_action_{$action}", $post_id ); + wp_redirect( admin_url('edit.php') ); exit(); } // end switch diff --git a/wp-includes/version.php b/wp-includes/version.php index 1b7c90f94b..1ac8355782 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37423'; +$wp_version = '4.6-alpha-37424'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.