Changeset 663209
- Timestamp:
- 02/04/2013 02:14:27 PM (13 years ago)
- File:
-
- 1 edited
-
wp-vgwort/trunk/wp-vgwort.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-vgwort/trunk/wp-vgwort.php
r663135 r663209 278 278 if(!empty($marke)) 279 279 { 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" />'; 281 282 } 282 283 … … 323 324 // vars übergeben 324 325 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 } 329 336 } 330 337 }
Note: See TracChangeset
for help on using the changeset viewer.