WordPress.org

Making WordPress.org

Opened 4 years ago

Closed 21 months ago

#1630 closed task (fixed)

Open source themes info API endpoint

Reported by: ocean90 Owned by: dd32
Milestone: Priority: normal
Component: API Keywords:
Cc:

Description

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.

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

Change History (7)

#1 @dd32
4 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 (xx.wordpress.org/themes), 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
21 months ago

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

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

#3 @dd32
21 months 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 WordPress.org.

#4 @dd32
21 months ago

In 6418:

API: Open-source api.wordpress.org/themes/info/ and api.wordpress.org/themes/theme-directory/.

See #1630

#5 @dd32
21 months ago

In 6419:

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

See #1630

#6 @dd32
21 months ago

In 6462:

Theme Directory: API: Move the Themes_API class into the plugin, making api.wordpress.org/themes/info/ a wrapper for it.

See #1630

#7 @dd32
21 months ago

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

This is now completed.

Note: See TracTickets for help on using tickets.