Created
March 10, 2011 03:43
-
-
Save loxK/863538 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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