Go to file
Joe McGill 06329dc35e Media: Ensure 'media_handle_upload()' returns 'WP_Error' on failure.
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
2017-08-30 15:03:08 +00:00
src Media: Ensure 'media_handle_upload()' returns 'WP_Error' on failure. 2017-08-30 15:03:08 +00:00
tests Customize: Prevent potential cache corruption when finding a secondary changeset post by UUID. 2017-08-29 04:09:57 +00:00
tools/i18n DOCS: Replace HTTP links with HTTPS. 2016-06-10 04:49:09 +00:00
.editorconfig
.gitignore Build/Test Tools: Facilitate SVN and Git being co-located in the same directory. 2016-12-12 05:11:27 +00:00
.jshintrc Build/Test Tools: After [29858], update `.jsintrc` to use spaces, not tabs. 2017-01-13 04:44:53 +00:00
.travis.yml Build/Test tools: Use the latest in the 4.x and 6.x branches of PHPUnit when running tests on Travis. 2017-08-22 16:08:33 +00:00
Gruntfile.js Build/Test Tools: Remove unneeded commas to fix JSHint error introduced 2017-08-20 09:12:36 +00:00
package.json Build/Test Tools: Add banner to minified CSS files 2017-08-19 20:09:31 +00:00
phpunit.xml.dist Tests: Rename ignored tests in `phpunit.xml.dist`. 2017-08-18 10:26:50 +00:00
wp-cli.yml
wp-config-sample.php
wp-tests-config-sample.php General: Improve terminology used when referring to installations of WordPress and its extensions. 2017-08-22 11:51:11 +00:00