diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 795ec89933..5499629d3e 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1170,6 +1170,8 @@ function debug_fclose( $fp ) { */ function do_enclose( $content, $post_ID ) { global $wpdb; + + //TODO: Tidy this ghetto code up and make the debug code optional include_once( ABSPATH . WPINC . '/class-IXR.php' ); $log = debug_fopen( ABSPATH . 'enclosures.log', 'a' );