| 14 | | There didn't appear to be test coverage for the error case, so this was not noticed. Nevertheless, the featured media '''does''' get updated, and this is because the parent method also calls this same `handle_featured_media()` method. However, when this happens the result is that `set_post_thumbnail()` is called twice. When passing the same values into that function a second time, the function returns `false` causing it to appear as if it failed, and then this causes the REST API endpoint to newly return with an error. |
| | 14 | There didn't appear to be test coverage for the error case, so this was not noticed. Nevertheless, the featured media '''does''' get updated, and this is because the parent method also calls this same `handle_featured_media()` method. When the `$schema` is supplied, then this method gets called twice, calling `set_post_thumbnail()` two times. When passing the same values into that function a second time, the function returns `false` causing it to appear as if it failed, and then this causes the REST API endpoint to newly return with an error. |