[wp-trac] [WordPress Trac] #57897: REST attachments controller does not handle terms on creation

WordPress Trac noreply at wordpress.org
Mon Sep 18 14:55:59 UTC 2023


#57897: REST attachments controller does not handle terms on creation
-------------------------------------------------+-------------------------
 Reporter:  swissspidy                           |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  6.4
Component:  REST API                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests has-        |     Focuses:  rest-api
  testing-info needs-testing                     |
-------------------------------------------------+-------------------------

Comment (by Ankit K Gupta):

 = Test / Verification Report. ✅


 Patch tested: https://github.com/WordPress/wordpress-develop/pull/5238

 == Env

 * WordPress - 6.4-alpha-20230918.155338
 * Web Server: Nginx
 * Chrome Version - 116
 * OS -  macOS
 * Theme: Storefront
 * PHP - 7.4.0
 * Active Plugin - JSON Basic Authentication


 == Actual Results
 - ✅ Issue resolved with PR.

 == Test result

 This pull request addresses an issue where terms could not be assigned to
 newly uploaded attachments through the REST API. Tested by following the
 above instructions.
 Without/before the PR, taxonomies were not getting assigned when uploading
 media via REST API. After the PR, categories are assigned to the newly
 added attachment.

 == Video Demostration

 https://www.loom.com/share/a933fead39624c3186143e1b29b43a70


 == After the patch

 [[Image(https://i.imgur.com/ZGc3yqp.jpg)]]


 == Before the patch

 [[Image(https://i.imgur.com/hztJ9kj.jpg)]]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57897#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list