This fixes an issue where failures when inserting the attachment post via `wp_insert_attachment()` would result in a return value of `0` instead of a `WP_Error` object, as documented. This is addressed by passing `true` as the fourth param (added in WP 4.7.0) when calling `wp_insert_attachment()`. Props mrasharirfan, flixos90. Fixes #41726. git-svn-id: https://develop.svn.wordpress.org/trunk@41323 602fd350-edb4-49c9-b593-d223f7449a82
Description
No description provided
Languages
PHP
76.7%
CSS
10.9%
JavaScript
9.2%
Modelica
2.4%
HTML
0.6%
Other
0.2%