Opened 8 years ago

Closed 6 years ago

#1630 closed task (blessed) (fixed)

Open source themes info API endpoint

Reported by: ocean90's profile ocean90 Owned by: dd32's profile dd32
Milestone: Priority: normal
Component: API Keywords:


When the theme directory was rewritten the info endpoint was also rewritten. The API is currently fully documented and pretty straightforward.

@obenland and @dd32 have no objections for this task. We probably only want to remove the "placeholder sites" first.

| |____info
| | |____1.1
| | | |____index.php
| | |____1.0
| | | |____index.php
| | | |____class-themes-api.php

Change History (7)

#1 @dd32
8 years ago

In 2755:

Themes Directory: Open-source the pre_get_posts logic used by the Themes Directory & add logic to handle the domain not matching the home_url.

This allows us to remove the 'placeholder' sites we use for the themes directory on internationalized sites (, and makes the query logic more transparent.

See #1630 (which this is the first part for)
See #1618 (Some work will still be needed to correctly trim the description)

#2 @obenland
6 years ago

  • Owner set to dd32
  • Status changed from new to assigned

@dd32 Would you mind pairing up with me on this one?

#3 @dd32
6 years ago

@obenland Sure, however looking at the code, there's a few things that need cleaning up before we can open-source some of the API code. Although most of it is portability to other systems and not making assumptions that it'll be run on

#4 @dd32
6 years ago

In 6418:

API: Open-source and

See #1630

#5 @dd32
6 years ago

In 6419:

Themes: Move the Themes_API query class into the Theme Directory plugin.

See #1630

#6 @dd32
6 years ago

In 6462:

Theme Directory: API: Move the Themes_API class into the plugin, making a wrapper for it.

See #1630

#7 @dd32
6 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

This is now completed.

Note: See TracTickets for help on using tickets.