]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/import.php
WordPress 4.0
[autoinstalls/wordpress.git] / wp-admin / includes / import.php
index f01eb8734ddfec90488c8f2b54a1049601b63b31..ab8e8e3db0815738a2e0d7a2facc3f043dfb422c 100644 (file)
@@ -105,7 +105,10 @@ function wp_import_handle_upload() {
        // Save the data
        $id = wp_insert_attachment( $object, $file );
 
-       // schedule a cleanup for one day from now in case of failed import or missing wp_import_cleanup() call
+       /*
+        * Schedule a cleanup for one day from now in case of failed
+        * import or missing wp_import_cleanup() call.
+        */
        wp_schedule_single_event( time() + DAY_IN_SECONDS, 'importer_scheduled_cleanup', array( $id ) );
 
        return array( 'file' => $file, 'id' => $id );
@@ -119,7 +122,7 @@ function wp_import_handle_upload() {
  * @return array Importers with metadata for each.
  */
 function wp_get_popular_importers() {
-       include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
+       include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
 
        $locale = get_locale();
        $popular_importers = get_site_transient( 'popular_importers_' . $locale );