| @@ -43,9 +43,10 @@ | ||
| 43 | 43 | } |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | $post = get_post( $new_post_id ); |
| 47 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- WordPress core hook save_post; renaming it would break the core hook contract. | |
| 47 | 48 | do_action( "save_post", $new_post_id, $post, false ); |
| 48 | 49 | } |
| 49 | 50 | } |
| 50 | 51 | |
| 51 | 52 | PH_Duplicate_Post::init(); |