Changeset 2566597
- Timestamp:
- 07/18/2021 10:48:05 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ada2go-text-modules/trunk/settings_page.php
r2566592 r2566597 5 5 if($_GET['action']=="updatekat" AND (is_admin())) { 6 6 #$_POST["edit-kat"]; 7 $a2g_new_kat_content = sanitize_text_field( $_POST["edit-kat"]);7 $a2g_new_kat_content = sanitize_text_field( ); 8 8 $a2g_update_kategorie_id = sanitize_text_field( $_GET["id"]); 9 9 $wpdb->update( … … 28 28 // Handle EDIT Text 29 29 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( ); 31 31 $a2g_update_text_id = sanitize_text_field( $_GET["id"] ); 32 32 $wpdb->update( … … 52 52 // Handle EDIT Output CSS 53 53 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( ); 55 55 $file = ABSPATH . 'wp-content/plugins/ada2go-text-modules/a2g-css-output.txt'; 56 56 $current = file_get_contents($file); … … 152 152 echo __( '<form action="?page=a2g_tm_settings&action=updatekat&id='. sanitize_text_field($a2g_tm_get_id) .'" method="post">' ); 153 153 $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' ); 155 155 echo __( '<br /><input type="hidden" name="a2g-edit-id" value="'. sanitize_text_field($a2g_tm_get_id) .'"> 156 156 <input type="submit" name="submit" id="submit" class="button button-primary" value="'. __( 'Kategorie aktualisieren', 'ada2go-text-modules' ).'"><br /><br />' ); … … 163 163 echo __( '<form action="?page=a2g_tm_settings&action=updatetext&id='.sanitize_text_field($a2g_tm_get_id).'" method="post">' ); 164 164 $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' ); 166 166 echo __( '<br /><input type="hidden" name="a2g-edit-id" value="'.sanitize_text_field($a2g_tm_get_id) .'"> 167 167 <input type="submit" name="submit" id="submit" class="button button-primary" value="'. __( 'Text aktualisieren', 'ada2go-text-modules' ).'"><br /><br />' ); … … 222 222 <th><?php echo __( 'Beschreibung', 'ada2go-text-modules' ); ?></th> 223 223 </tr> 224 <?php echo a2g_tm_while_categorys(); ?>224 <?php echo ); ?> 225 225 </table> 226 226 </div> … … 254 254 <th><?php echo __( 'Kategorie', 'ada2go-text-modules' ); ?></th> 255 255 </tr> 256 <?php echo a2g_tm_while_textes(); ?>256 <?php echo ); ?> 257 257 </table> 258 258 </div>
Note: See TracChangeset
for help on using the changeset viewer.