Changeset 663132
- Timestamp:
- 02/04/2013 11:21:30 AM (13 years ago)
- Location:
- wp-vgwort/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp-vgwort.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-vgwort/trunk/readme.txt
r662457 r663132 5 5 Requires at least: 3.0 6 6 Tested up to: 3.5 7 Stable tag: 1. 17 Stable tag: 1.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 42 42 == Changelog == 43 43 44 = 1.2 = 45 * Bugfix - Einbau Wortmarke 46 44 47 = 1.1 = 45 48 * Spalte VG Wort in Beitragsübersich angepasst -
wp-vgwort/trunk/wp-vgwort.php
r662103 r663132 5 5 Plugin URI: http://www.mywebcheck.de/wp-vgwort.zip 6 6 Description: Verwaltung der VG Wort Zählpixel 7 Version: 1. 17 Version: 1.2 8 8 Author: Marcus Franke 9 9 Author URI: http://mywebcheck.de … … 241 241 public function wpVGWortFrontendDisplay( $content ) { 242 242 243 global $post; 244 243 245 $vgwort = get_post_meta( $post->ID , VGWORTMETA , true ); 244 246 … … 273 275 274 276 // The actual fields for data entry 275 276 echo '<input type="input" size="150" name="wp_vgwortmarke" value="'.get_post_meta( $post->ID , VGWORTMETA , true ).'" /><br />'; 277 $marke = get_post_meta( $post->ID , VGWORTMETA , true ); 278 if(!empty($marke)) 279 { 280 echo "<strong>Vorhandene Zählmarke</strong>: ".htmlspecialchars($marke); 281 } 282 283 echo '<input type="input" size="150" name="wp_vgwortmarke" value="" />'; 284 echo '<input type="submit" name="Sender" value="speichern" /><br />'; 277 285 echo '<a href="http://www.vgwort.de/" target="_blank">VG WORT Marke erstellen</a>'; 278 286 … … 314 322 315 323 // vars übergeben 316 324 317 325 if(!empty($_POST['wp_vgwortmarke'])){ 318 update_post_meta($post_id , VGWORTMETA , $_POST['wp_vgwortmarke']);326 update_post_meta($post_id , VGWORTMETA , stripslashes($_POST['wp_vgwortmarke']) ); 319 327 }else{ 320 delete_post_meta($post_id , VGWORTMETA , $_POST['wp_vgwortmarke']);328 delete_post_meta($post_id , VGWORTMETA , stripslashes($_POST['wp_vgwortmarke'])); 321 329 } 322 330 }
Note: See TracChangeset
for help on using the changeset viewer.