Make WordPress Core


Ignore:
Timestamp:
08/07/2008 09:03:11 PM (16 years ago)
Author:
ryan
Message:

Fix Text/Diff includes. Props codestyling. fixes #7391 for 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/wp-includes/pluggable.php

    r8566 r8582  
    15131513    $args = wp_parse_args( $args, $defaults );
    15141514
    1515     // PEAR Text_Diff is lame; it includes things from include_path rather than it's own path.
    1516     // Not sure of the ramifications of disttributing modified code.
    1517     ini_set('include_path', '.' . PATH_SEPARATOR . ABSPATH . WPINC );
    1518 
    15191515    if ( !class_exists( 'WP_Text_Diff_Renderer_Table' ) )
    15201516        require( ABSPATH . WPINC . '/wp-diff.php' );
     
    15351531    $diff = $renderer->render($text_diff);
    15361532
    1537     ini_restore('include_path');
    1538 
    15391533    if ( !$diff )
    15401534        return '';
Note: See TracChangeset for help on using the changeset viewer.