Make WordPress Core


Ignore:
Timestamp:
06/18/2017 10:39:12 AM (7 years ago)
Author:
boonebgorges
Message:

Add term meta support to XML-RPC addTerm and editTerm endpoints.

This changeset also includes the new function has_term_meta(), a
counterpart to has_meta() (for posts).

Props enrico.sorcinelli.
Fixes #35991.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/xmlrpc/wp/getTerms.php

    r40417 r40916  
    5050        foreach( $results as $term ) {
    5151            $this->assertInternalType( 'int', $term['count'] );
     52
     53            // Check custom term meta
     54            $this->assertInternalType( 'array', $term['custom_fields'] );
    5255
    5356            // We expect all other IDs to be strings not integers so we don't return something larger than an XMLRPC integer can describe.
Note: See TracChangeset for help on using the changeset viewer.