Making WordPress.org


Ignore:
Timestamp:
01/31/2018 04:17:58 AM (4 years ago)
Author:
dd32
Message:

API: Plugin & Theme Directory: Use the new constants to determine which API version we're running on.

See #111

File:
1 edited

Legend:

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

    r6484 r6486  
    121121        $response = $this->response;
    122122
    123         // Back-compat behaviour:
    124         if ( defined( 'THEMES_API_SUPPORTS_ERRORS' ) && ! THEMES_API_SUPPORTS_ERRORS ) {
     123        // Back-compat behaviour for the 1.0/1.1 API's
     124        if ( defined( 'THEMES_API_VERSION' ) && THEMES_API_VERSION < 1.2 ) {
    125125            if ( isset( $this->response->error ) && 'Theme not found' == $this->response->error ) {
    126126                $response = false;
Note: See TracChangeset for help on using the changeset viewer.