Files
wordpress/wp-includes
Scott Taylor 33c096aa71 Reinstate the changes from [28579] with some adjustments:
* Check `! empty( $postarr['file'] )` before calling `update_attached_file()`
* Add a unit test: `test_update_attachment_fields()`
* Run the same logic for empty `guid` for attachments that always ran in `wp_insert_post()`, as per #18310. This fixes a unit test that would have broken when this ticket was marked closed.
* Updated the unit test in `Tests_Media::test_wp_prepare_attachment_for_js()` to account for `url` no longer being empty

Props kovshenin, wonderboymusic.
See #21963.

Built from https://develop.svn.wordpress.org/trunk@28788


git-svn-id: http://core.svn.wordpress.org/trunk@28601 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-20 18:27:14 +00:00
..
2014-04-07 17:52:16 +00:00
2014-03-27 22:41:14 +00:00
2014-06-10 00:30:15 +00:00
2014-06-20 17:12:15 +00:00
2014-06-12 02:49:16 +00:00
2014-03-26 18:43:14 +00:00
2014-06-10 00:30:15 +00:00