Ticket #7391: 7391.patch
File 7391.patch, 1007 bytes (added by , 17 years ago) |
---|
-
wp-includes/pluggable.php
1514 1514 1515 1515 // PEAR Text_Diff is lame; it includes things from include_path rather than it's own path. 1516 1516 // Not sure of the ramifications of disttributing modified code. 1517 ini_set('include_path', '.' . PATH_SEPARATOR . ABSPATH . WPINC ); 1517 if ( ! @set_include_path( @get_include_path() . PATH_SEPARATOR . ABSPATH . WPINC ) ) 1518 return __('Error: the PHP function set_include_path() is disabled on your server. Post revisions cannot be displayied. Please contact your hosting company to resolve this error.'); 1518 1519 1519 1520 if ( !class_exists( 'WP_Text_Diff_Renderer_Table' ) ) 1520 1521 require( ABSPATH . WPINC . '/wp-diff.php' ); … … 1534 1535 $renderer = new WP_Text_Diff_Renderer_Table(); 1535 1536 $diff = $renderer->render($text_diff); 1536 1537 1537 ini_restore('include_path');1538 1539 1538 if ( !$diff ) 1540 1539 return ''; 1541 1540