Skip to content

Commit

Permalink
Fied bonus sticker bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ksmandersen committed Jun 14, 2012
1 parent 708b48b commit fce4b5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wp-content/themes/taniaellis/home.php
Expand Up @@ -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" />
Expand Down
1 change: 1 addition & 0 deletions wp-content/themes/taniaellis/meta-box.php
Expand Up @@ -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;
Expand Down

0 comments on commit fce4b5e

Please sign in to comment.