Plugin Directory

Changeset 663132


Ignore:
Timestamp:
02/04/2013 11:21:30 AM (13 years ago)
Author:
smoo1337
Message:

Bugfix v 1.3

Location:
wp-vgwort/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-vgwort/trunk/readme.txt

    r662457 r663132  
    55Requires at least: 3.0
    66Tested up to: 3.5
    7 Stable tag: 1.1
     7Stable tag: 1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4242== Changelog ==
    4343
     44= 1.2 =
     45* Bugfix - Einbau Wortmarke
     46
    4447= 1.1 =
    4548* Spalte VG Wort in Beitragsübersich angepasst
  • wp-vgwort/trunk/wp-vgwort.php

    r662103 r663132  
    55Plugin URI: http://www.mywebcheck.de/wp-vgwort.zip
    66Description: Verwaltung der VG Wort Zählpixel
    7 Version: 1.1
     7Version: 1.2
    88Author: Marcus Franke
    99Author URI: http://mywebcheck.de
     
    241241    public function wpVGWortFrontendDisplay( $content ) {
    242242
     243        global $post;
     244   
    243245        $vgwort = get_post_meta( $post->ID , VGWORTMETA , true );
    244246       
     
    273275
    274276        // 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 />';
    277285        echo '<a href="http://www.vgwort.de/" target="_blank">VG WORT Marke erstellen</a>';
    278286
     
    314322
    315323        // vars übergeben
    316 
     324       
    317325        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']) );
    319327        }else{
    320             delete_post_meta($post_id , VGWORTMETA , $_POST['wp_vgwortmarke'] );
     328            delete_post_meta($post_id , VGWORTMETA , stripslashes($_POST['wp_vgwortmarke']));
    321329        }
    322330    }
Note: See TracChangeset for help on using the changeset viewer.