Skip to content

Instantly share code, notes, and snippets.

@loxK
Created March 10, 2011 03:42
Show Gist options
  • Save loxK/863537 to your computer and use it in GitHub Desktop.
Save loxK/863537 to your computer and use it in GitHub Desktop.
Index: wpsc-admin/includes/display-items-functions.php
===================================================================
--- wpsc-admin/includes/display-items-functions.php (révision 357938)
+++ wpsc-admin/includes/display-items-functions.php (copie de travail)
@@ -841,6 +841,8 @@
$product_data['meta'] = $product_meta = maybe_unserialize( $product_data['_wpsc_product_metadata'][0] );
$upload_max = wpsc_get_max_upload_size();
+
+ ob_start();
?>
<?php echo wpsc_select_product_file( $post->ID ); ?>
<h4><?php _e( 'Upload New File', 'wpsc' ); ?>:</h4>
@@ -873,7 +875,7 @@
<br />
<?php
}
- $output = apply_filters( 'wpsc_downloads_metabox', $output );
+ echo $output = apply_filters( 'wpsc_downloads_metabox', ob_get_clean() );
}
function wpsc_product_label_forms() {
_deprecated_function( __FUNCTION__, '3.8' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment