Skip to:
Content

bbPress.org

Ticket #2518: template-functions.patch

File template-functions.patch, 858 bytes (added by tonyrix, 10 years ago)

Changes WP_CONTENT_URL to content_url()

  • includes/core/template-functions.php

     
    168168                }
    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
    174174                wp_enqueue_style( $handle, $located, $dependencies, $version, $media );
     
    236236                }
    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
    242242                wp_enqueue_script( $handle, $located, $dependencies, $version, $in_footer );