Plugin Directory

Changeset 663209


Ignore:
Timestamp:
02/04/2013 02:14:27 PM (13 years ago)
Author:
smoo1337
Message:

Bug Fix Metabox

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-vgwort/trunk/wp-vgwort.php

    r663135 r663209  
    278278        if(!empty($marke))
    279279        {
    280             echo "<strong>Vorhandene Zählmarke</strong>: ".htmlspecialchars($marke);
     280            echo '<strong>Vorhandene Zählmarke</strong>: '.htmlspecialchars($marke);
     281            echo '<input type="hidden" name="markein" value="1" />';
    281282        }
    282283       
     
    323324        // vars übergeben
    324325       
    325         if(!empty($_POST['wp_vgwortmarke'])){
    326             update_post_meta($post_id , VGWORTMETA , stripslashes($_POST['wp_vgwortmarke']) );
    327         }else{
    328             delete_post_meta($post_id , VGWORTMETA , stripslashes($_POST['wp_vgwortmarke']));
     326        if(!isset($_POST['markein'])){
     327            if(!empty($_POST['wp_vgwortmarke'])){
     328                update_post_meta($post_id , VGWORTMETA , stripslashes($_POST['wp_vgwortmarke']) );
     329            }else{
     330                delete_post_meta($post_id , VGWORTMETA , stripslashes($_POST['wp_vgwortmarke']));
     331            }
     332        } else {
     333            if(!empty($_POST['wp_vgwortmarke'])){
     334                update_post_meta($post_id , VGWORTMETA , stripslashes($_POST['wp_vgwortmarke']) );
     335            }
    329336        }
    330337    }
Note: See TracChangeset for help on using the changeset viewer.