Making WordPress.org

Changeset 6419


Ignore:
Timestamp:
01/23/2018 06:09:14 AM (7 years ago)
Author:
dd32
Message:

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

See #1630

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php

    r6289 r6419  
    792792 */
    793793function wporg_themes_query_api( $method, $args = array() ) {
    794     include_once API_WPORGPATH . 'themes/info/1.0/class-themes-api.php';
     794    if ( ! class_exists( 'Themes_API' ) ) {
     795        if ( file_exists( __DIR__ . '/class-themes-api.php' ) ) {
     796            include_once __DIR__ . '/class-themes-api.php';
     797        } else {
     798            include_once API_WPORGPATH . 'themes/info/1.0/class-themes-api.php';
     799        }
     800    }
    795801
    796802    $api = new Themes_API( $method, $args );
Note: See TracChangeset for help on using the changeset viewer.