]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/misc.php
Wizard 2.8.2-scripts
[autoinstalls/wordpress.git] / wp-admin / includes / misc.php
index d020e74add59a42f0c157bbfbdd702f7134ac942..356c6b0018b1a16cd7af2a58fe7026f566840907 100644 (file)
@@ -72,7 +72,9 @@ function insert_with_markers( $filename, $marker, $insertion ) {
                        $markerdata = explode( "\n", implode( '', file( $filename ) ) );
                }
 
-               $f = fopen( $filename, 'w' );
+               if ( !$f = @fopen( $filename, 'w' ) )
+                       return false;
+
                $foundit = false;
                if ( $markerdata ) {
                        $state = true;
@@ -270,6 +272,9 @@ function wp_doc_link_parse( $content ) {
        if ( !is_string( $content ) || empty( $content ) )
                return array();
 
+       if ( !function_exists('token_get_all') )
+               return array();
+
        $tokens = token_get_all( $content );
        $functions = array();
        $ignore_functions = array();