Skip to:
Content

bbPress.org

Changeset 5262


Ignore:
Timestamp:
01/21/2014 12:44:14 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. (2.5 branch)

File:
1 edited

Legend:

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

    r5210 r5262  
    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.