From 53c1a55f2a5c0161a889f43eba4fb689a73b95bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20D=C4=9Bdi=C4=8D?= Date: Mon, 13 Jan 2025 17:26:40 +0100 Subject: [PATCH] Fixed parameters for wp_insert_attachment --- stubs/WordPress/functions.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/stubs/WordPress/functions.php b/stubs/WordPress/functions.php index 2a48f96..e679c73 100644 --- a/stubs/WordPress/functions.php +++ b/stubs/WordPress/functions.php @@ -1478,12 +1478,19 @@ function wp_get_theme( $stylesheet = '', $theme_root = '' ) { * @type array $meta_input * } * @param string|false $file - * @param int $parent + * @param int $parent_post_id * @param bool $wp_error + * @param bool $fire_after_hooks * * @return int|WP_Error */ -function wp_insert_attachment( $args, $file = false, $parent = 0, $wp_error = false ) { +function wp_insert_attachment( + $args, + $file = false, + $parent_post_id = 0, + $wp_error = false, + $fire_after_hooks = true +) { } /**