Skip to:
Content

bbPress.org

Changeset 5261


Ignore:
Timestamp:
01/21/2014 12:43:12 AM (11 years ago)
Author:
johnjamesjacoby
Message:

Use content_url() rather than WP_CONTENT_URL for style and script enqueue functions, fixing insecure content warnings when using SSL theme-side. Props tonyrix. Fixes #2518. (trunk)

File:
1 edited

Legend:

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

    r5209 r5261  
    169169
    170170        // Make path to file relative to site URL
    171         $located = str_replace( $content_dir, WP_CONTENT_URL, $located );
     171        $located = str_replace( $content_dir, content_url(), $located );
    172172
    173173        // Enqueue the style
     
    237237
    238238        // Make path to file relative to site URL
    239         $located = str_replace( $content_dir, WP_CONTENT_URL, $located );
     239        $located = str_replace( $content_dir, content_url(), $located );
    240240
    241241        // Enqueue the style
Note: See TracChangeset for help on using the changeset viewer.