Skip to content

Commit

Permalink
Merge pull request #99 from skaut/wp_insert_attachment-fix
Browse files Browse the repository at this point in the history
Fixed parameters for wp_insert_attachment
  • Loading branch information
marekdedic authored Jan 13, 2025
2 parents bd3fa0d + 53c1a55 commit 7952dd8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions stubs/WordPress/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1478,12 +1478,19 @@ function wp_get_theme( $stylesheet = '', $theme_root = '' ) {
* @type array<string, mixed> $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
) {
}

/**
Expand Down

0 comments on commit 7952dd8

Please sign in to comment.