WordPress.org

Making WordPress.org


Ignore:
Timestamp:
02/25/2015 04:07:33 PM (6 years ago)
Author:
obenland
Message:

WP.org Themes: Use constant rather than a hard-coded path.

Props ocean90.
See #745.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php

    r1322 r1324  
    149149    ) );
    150150
    151     include_once '/home/api/public_html/themes/info/1.0/class-themes-api.php';
     151    include_once API_WPORGPATH . 'themes/info/1.0/class-themes-api.php';
    152152    $api = new Themes_API( 'query_themes', $args );
    153153    $api = $api->response;
     
    169169    $args  = wp_unslash( $_REQUEST );
    170170
    171     include_once '/home/api/public_html/themes/info/1.0/class-themes-api.php';
     171    include_once API_WPORGPATH . 'themes/info/1.0/class-themes-api.php';
    172172    $api = new Themes_API( 'query_themes', array( 'slug' => $args['slug'] ) );
    173173    $api = $api->response;
Note: See TracChangeset for help on using the changeset viewer.