<?phpclassJetpack_JSON_API_Themes_List_EndpointextendsJetpack_JSON_API_Themes_Endpoint{// GET /sites/%s/themesprotected$needed_capabilities='switch_themes';publicfunctionvalidate_input($theme){$this->themes=wp_get_themes(array('allowed'=>true));returntrue;}}