WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #38553, comment 1


Ignore:
Timestamp:
10/29/2016 12:35:32 AM (5 years ago)
Author:
ChopinBach
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #38553, comment 1

    initial v1  
    1 @timmydcrawford Great catch on this! To solve two problems at once, instead of changing the conditional to check if it is an array.  Just change the line where `$terms` is assigned to read `$terms = wp_parse_id_list( $request[ $base ] );` That should enable the csv list support for updating/creating posts with multiple categories.  I haven't tested it, but it should work.  Adding in a test case would be nice too. I will test it myself tomorrow and see if I can help out.
     1@timmydcrawford Great catch on this! To solve two problems at once, instead of changing the conditional to check if it is an array, only change the line where `$terms` is assigned to read `$terms = wp_parse_id_list( $request[ $base ] );` That should enable the csv list support for updating/creating posts with multiple categories.  I haven't tested it, but it should work.  Adding in a test case would be nice too. I will test it myself tomorrow and see if I can help out.