WordPress.org

Make WordPress Core

Ticket #27056: 27056.4.patch

File 27056.4.patch, 583 bytes (added by DrewAPicture, 3 years ago)

Docs tweaks

  • src/wp-admin/post.php

     
    275275        exit();
    276276
    277277default:
     278        /**
     279         * Fires for a given custom post action request.
     280         *
     281         * The dynamic portion of the hook name, `$action`, refers to the custom post action.
     282         *
     283         * @since 4.6.0
     284         *
     285         * @param int $post_id Post ID sent with the request.
     286         */
     287        do_action( "post_action_{$action}", $post_id );
     288
    278289        wp_redirect( admin_url('edit.php') );
    279290        exit();
    280291} // end switch