WordPress.org

Plugin Directory

Changeset 618723


Ignore:
Timestamp:
10/29/12 16:42:51 (18 months ago)
Author:
cfinke
Message:

Infinite Scroll: DIR isn't available until PHP 5.3, but plenty of people are still on 5.2.*. dirname( DIR ) is equivalent.

Location:
jetpack/branches/infinite-scroll
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • jetpack/branches/infinite-scroll/jetpack.php

    r617892 r618723  
    380380 
    381381        // Load module-specific code that is needed even when a module isn't active. Loaded here because code contained therein may need actions such as setup_theme. 
    382         require_once( __DIR__ . '/modules/module-extras.php' ); 
     382        require_once( dirname( __FILE__ ) . '/modules/module-extras.php' ); 
    383383    } 
    384384 
  • jetpack/branches/infinite-scroll/modules/infinite-scroll/infinity.php

    r617892 r618723  
    759759    $theme_name = get_stylesheet(); 
    760760 
    761     $customization_file = apply_filters( 'infinite_scroll_customization_file', __DIR__ . "/themes/{$theme_name}.php", $theme_name ); 
     761    $customization_file = apply_filters( 'infinite_scroll_customization_file', dirname( __FILE__ ) . "/themes/{$theme_name}.php", $theme_name ); 
    762762 
    763763    if ( is_readable( $customization_file ) ) 
  • jetpack/branches/infinite-scroll/modules/module-extras.php

    r617892 r618723  
    2020        $theme_name = get_stylesheet(); 
    2121 
    22         $customization_file = apply_filters( 'infinite_scroll_customization_file', __DIR__ . "/infinite-scroll/themes/{$theme_name}.php", $theme_name ); 
     22        $customization_file = apply_filters( 'infinite_scroll_customization_file', dirname( __FILE__ ) . "/infinite-scroll/themes/{$theme_name}.php", $theme_name ); 
    2323 
    2424        if ( is_readable( $customization_file ) ) 
Note: See TracChangeset for help on using the changeset viewer.