Plugin Directory

Changeset 2566597

Timestamp:
07/18/2021 10:48:05 AM (3 years ago)
Author:
ada2go
Message:

Fixed blemishes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ada2go-text-modules/trunk/settings_page.php

    r2566592 r2566597  
    55    if($_GET['action']=="updatekat" AND (is_admin())) {
    66    #$_POST["edit-kat"];
    7     $a2g_new_kat_content = sanitize_text_field( $_POST["edit-kat"] );
     7    $a2g_new_kat_content = sanitize_text_field( );
    88    $a2g_update_kategorie_id = sanitize_text_field( $_GET["id"]);
    99          $wpdb->update(
     
    2828    // Handle EDIT Text
    2929    if($_GET['action']=="updatetext" AND (is_admin())) {
    30     $a2g_new_text_content = sanitize_text_field( $_POST["edit-text"]);
     30    $a2g_new_text_content = sanitize_text_field( );
    3131    $a2g_update_text_id = sanitize_text_field( $_GET["id"] );
    3232          $wpdb->update(
     
    5252    // Handle EDIT Output CSS
    5353    if($_GET['action']=="editoutcss" AND (is_admin())) {
    54     $a2g_new_css_content = sanitize_text_field( $_POST["css-output"]);
     54    $a2g_new_css_content = sanitize_text_field( );
    5555        $file = ABSPATH . 'wp-content/plugins/ada2go-text-modules/a2g-css-output.txt';
    5656        $current = file_get_contents($file);
     
    152152    echo __( '<form action="?page=a2g_tm_settings&action=updatekat&id='. sanitize_text_field($a2g_tm_get_id) .'" method="post">' );
    153153    $a2g_tm_get_editcat = a2g_tm_edit_cat_by_catid($a2g_tm_get_id);
    154     echo wp_editor( $a2g_tm_get_editcat, 'edit-kat' );
     154    echo wp_editor( , 'edit-kat' );
    155155    echo __( '<br /><input type="hidden" name="a2g-edit-id" value="'. sanitize_text_field($a2g_tm_get_id) .'">
    156156    <input type="submit" name="submit" id="submit" class="button button-primary" value="'. __( 'Kategorie aktualisieren', 'ada2go-text-modules' ).'"><br /><br />' );
     
    163163    echo __( '<form action="?page=a2g_tm_settings&action=updatetext&id='.sanitize_text_field($a2g_tm_get_id).'" method="post">' );
    164164    $a2g_tm_get_edittext = a2g_tm_edit_text_by_textid($a2g_tm_get_id);
    165     echo wp_editor( $a2g_tm_get_edittext, 'edit-text' );
     165    echo wp_editor( , 'edit-text' );
    166166    echo __( '<br /><input type="hidden" name="a2g-edit-id" value="'.sanitize_text_field($a2g_tm_get_id) .'">
    167167    <input type="submit" name="submit" id="submit" class="button button-primary" value="'. __( 'Text aktualisieren', 'ada2go-text-modules' ).'"><br /><br />' );
     
    222222<th><?php echo __( 'Beschreibung', 'ada2go-text-modules' ); ?></th>
    223223</tr>
    224 <?php echo a2g_tm_while_categorys(); ?>
     224<?php echo ); ?>
    225225</table>
    226226</div>
     
    254254<th><?php echo __( 'Kategorie', 'ada2go-text-modules' ); ?></th>
    255255</tr>
    256 <?php echo a2g_tm_while_textes(); ?>
     256<?php echo ); ?>
    257257</table>
    258258</div>
Note: See TracChangeset for help on using the changeset viewer.