WordPress.org

Make WordPress Core

Ticket #27056: 27056.3.patch

File 27056.3.patch, 524 bytes (added by sudar, 4 years ago)
  • src/wp-admin/post.php

     
    275275        exit();
    276276
    277277default:
     278        /**
     279         * Runs an action in the default case of wp-admin/post.php, given a specified action parameter.
     280         *
     281         * @since 4.5.0
     282         *
     283         * @param int $post_id Associated post ID.
     284         */
     285        do_action( "post_action_{$action}", $post_id );
    278286        wp_redirect( admin_url('edit.php') );
    279287        exit();
    280288} // end switch