Skip to content
Browse files

Fied bonus sticker bug

  • Loading branch information...
1 parent 708b48b commit fce4b5ede4c2107c694649034ac5abce6237c8b6 @ksmandersen ksmandersen committed Jun 14, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 wp-content/themes/taniaellis/home.php
  2. +1 −0 wp-content/themes/taniaellis/meta-box.php
View
2 wp-content/themes/taniaellis/home.php
@@ -91,7 +91,7 @@
$box_link_text = get_post_meta($post->ID, 'te_home-box-text-link-text', true);
?>
<?php $bonus_sticker = get_post_meta($post->ID, 'te_home-box-text-bonus-sticker', true); ?>
- <?php $sticker_url = get_post_meta($post->ID, 'te_home-box-text-bonus-sticker-image', true); ?>
+ <?php $sticker_url = get_post_meta($post->ID, 'te_home-box-text-bonus-sticker-image', true); echo $sticker_url; ?>
<?php if($bonus_sticker == 'on' && $sticker_url): ?>
<img src="<?php echo $sticker_url; ?>" alt="" class="bonus-sticker" />
View
1 wp-content/themes/taniaellis/meta-box.php
@@ -511,6 +511,7 @@ function save_field_file($post_id, $field, $old, $new) {
$this->fix_file_array($_FILES[$name]);
foreach ($_FILES[$name] as $position => $fileitem) {
+ @chmod($fileitem, 644);
$file = wp_handle_upload($fileitem, array('test_form' => false));
if (empty($file['file'])) continue;

0 comments on commit fce4b5e

Please sign in to comment.
Something went wrong with that request. Please try again.