Skip to content

Commit

Permalink
Merge pull request #313 from linchpin/issue/312
Browse files Browse the repository at this point in the history
fix(#312): Fix an issue with post meta being saving in all post types
  • Loading branch information
aaronware authored Feb 22, 2023
2 parents 835fb9e + 6d12991 commit 343d44c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/Controller/Courier.php
Original file line number Diff line number Diff line change
Expand Up @@ -396,11 +396,16 @@ public function save_post_courier_notice( $post_id, $post ) {
*
* @since 1.0
*
* @param int $post_id The post ID.
* @param array|object $post The post object.
* @param bool $update Whether or not to update.
* @param int $post_id The post ID.
* @param array|\WP_Post $post The post object.
* @param bool $update Insert or Update flag.
*/
public function wp_insert_post( $post_id, $post, $update ) {
public function wp_insert_post( int $post_id, $post, bool $update ) {

if ( 'courier_notice' !== $post->post_type ) {
return;
}

if ( ! is_admin() ) {
return;
}
Expand Down

0 comments on commit 343d44c

Please sign in to comment.