From b3326d8aa4aee71524261d980abcebe2758d5361 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 6 Sep 2021 13:34:36 +0000 Subject: [PATCH] Docs: Correct the `post_submitbox_minor_actions` hook description. The action fires after the Save Draft (or Save as Pending) and Preview (or Preview Changes) buttons in the Publish meta box. The previous description stated that the action fires before the post date/time setting, which was not quite correct, as there are also post status and visibility settings between the action and the date/time setting. Follow-up to [34895]. Props bedas, audrasjb. Fixes #54045. git-svn-id: https://develop.svn.wordpress.org/trunk@51732 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/meta-boxes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/meta-boxes.php b/src/wp-admin/includes/meta-boxes.php index 517a81d049..0dcc9f5e5c 100644 --- a/src/wp-admin/includes/meta-boxes.php +++ b/src/wp-admin/includes/meta-boxes.php @@ -87,7 +87,8 @@ function post_submit_meta_box( $post, $args = array() ) { endif; /** - * Fires before the post time/date setting in the Publish meta box. + * Fires after the Save Draft (or Save as Pending) and Preview (or Preview Changes) buttons + * in the Publish meta box. * * @since 4.4.0 *