Skip to:
Content

bbPress.org

Changeset 3960


Ignore:
Timestamp:
06/14/2012 12:49:16 AM (9 years ago)
Author:
johnjamesjacoby
Message:

Theme Compatilibilty:

  • Use trailingslashit() in default styling enqueue.
  • See #1849.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-theme-compat/bbpress-functions.php

    r3959 r3960  
    145145
    146146        // Check child theme
    147         if ( file_exists( get_stylesheet_directory() . $file ) ) {
     147        if ( file_exists( trailingslashit( get_stylesheet_directory() ) . $file ) ) {
    148148            $location = trailingslashit( get_stylesheet_directory_uri() );
    149149            $handle   = 'bbp-child-bbpress';
    150150
    151151        // Check parent theme
    152         } elseif ( file_exists( get_template_directory() . $file ) ) {
     152        } elseif ( file_exists( trailingslashit( get_template_directory() ) . $file ) ) {
    153153            $location = trailingslashit( get_template_directory_uri() );
    154154            $handle   = 'bbp-parent-bbpress';
    155155
    156         // bbPress Theme Compatibilty
     156        // bbPress Theme Compatibility
    157157        } else {
    158158            $location = trailingslashit( $this->url );
Note: See TracChangeset for help on using the changeset viewer.