Changeset 8581
- Timestamp:
- 08/07/2008 09:02:07 PM (16 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/Text/Diff.php
r7747 r8581 50 50 } 51 51 52 require_once 'Text/Diff/Engine/' . $engine . '.php'; 52 // WP #7391 53 require_once dirname(__FILE__).'/Diff/Engine/' . $engine . '.php'; 53 54 $class = 'Text_Diff_Engine_' . $engine; 54 55 $diff_engine = new $class(); -
trunk/wp-includes/Text/Diff/Renderer/inline.php
r7747 r8581 15 15 16 16 /** Text_Diff_Renderer */ 17 require_once 'Text/Diff/Renderer.php'; 17 18 // WP #7391 19 require_once dirname(dirname(__FILE__)) . '/Renderer.php'; 18 20 19 21 /** -
trunk/wp-includes/pluggable.php
r8572 r8581 1531 1531 $args = wp_parse_args( $args, $defaults ); 1532 1532 1533 // PEAR Text_Diff is lame; it includes things from include_path rather than it's own path.1534 // Not sure of the ramifications of disttributing modified code.1535 ini_set('include_path', '.' . PATH_SEPARATOR . ABSPATH . WPINC );1536 1537 1533 if ( !class_exists( 'WP_Text_Diff_Renderer_Table' ) ) 1538 1534 require( ABSPATH . WPINC . '/wp-diff.php' ); … … 1553 1549 $diff = $renderer->render($text_diff); 1554 1550 1555 ini_restore('include_path');1556 1557 1551 if ( !$diff ) 1558 1552 return ''; -
trunk/wp-includes/wp-diff.php
r8264 r8581 2 2 3 3 if ( !class_exists( 'Text_Diff' ) ) { 4 require( 'Text/Diff.php' );5 require( 'Text/Diff/Renderer.php' );6 require( 'Text/Diff/Renderer/inline.php' );4 require( dirname(__FILE__).'/Text/Diff.php' ); 5 require( dirname(__FILE__).'/Text/Diff/Renderer.php' ); 6 require( dirname(__FILE__).'/Text/Diff/Renderer/inline.php' ); 7 7 } 8 8
Note: See TracChangeset
for help on using the changeset viewer.