Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/25/2013 07:33:46 AM (11 years ago)
Author:
johnjamesjacoby
Message:

Use more intelligent calculation of path to url for style and script enqueueing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core/template-functions.php

    r5186 r5204  
    160160
    161161        // Make path to file relative to site URL
    162         $located = trailingslashit( site_url() ) . str_replace( ABSPATH, '', $located );
     162        $located = trailingslashit( WP_CONTENT_URL ) . ltrim( str_replace( WP_CONTENT_DIR, '', $located ), '/' );
    163163
    164164        // Enqueue the style
     
    219219
    220220        // Make path to file relative to site URL
    221         $located = trailingslashit( site_url() ) . str_replace( ABSPATH, '', $located );
     221        $located = trailingslashit( WP_CONTENT_URL ) . ltrim( str_replace( WP_CONTENT_DIR, '', $located ), '/' );
    222222
    223223        // Enqueue the style
Note: See TracChangeset for help on using the changeset viewer.