Plugin Directory

Changeset 1810277


Ignore:
Timestamp:
01/27/2018 01:42:41 AM (8 years ago)
Author:
Felln
Message:

Updated to Version 1.0.1

Location:
gr-dashboard-notes
Files:
6 added
3 edited

Legend:

Unmodified
Added
Removed
  • gr-dashboard-notes/trunk/gr-dashboard-notes.php

    r1810257 r1810277  
    44 * Plugin URI: https://wordpress.org/plugins/gr-dashboard-notes/
    55 * Description: This plugin let you create notes on the dashboard for different roles of your choice.
    6  * Version: 1.0.0
     6 * Version: 1.0.1
    77 * Author: Achim T.
    88 * Author URI: https://www.Game-Reset.de
     
    1414register_activation_hook(__FILE__,'gr_dashboard_notes_activate');
    1515function gr_dashboard_notes_activate() {
    16 add_option('GR_Dashboard_Notes-ID', array(""));
     16add_option('GR_Dashboard_Notes-ID', array());
    1717add_option('GR_Dashboard_Notes-1', '');
    1818add_option('GR_Dashboard_Notes-2', '');
     
    2020add_option('GR_Dashboard_Notes-4', '');
    2121add_option('GR_Dashboard_Notes-5', '');
    22 add_option('GR_Dashboard_Notes-Roles-1', '');
    23 add_option('GR_Dashboard_Notes-Roles-2', '');
    24 add_option('GR_Dashboard_Notes-Roles-3', '');
    25 add_option('GR_Dashboard_Notes-Roles-4', '');
    26 add_option('GR_Dashboard_Notes-Roles-5', '');
     22add_option('GR_Dashboard_Notes-Roles-1', array());
     23add_option('GR_Dashboard_Notes-Roles-2', array());
     24add_option('GR_Dashboard_Notes-Roles-3', array());
     25add_option('GR_Dashboard_Notes-Roles-4', array());
     26add_option('GR_Dashboard_Notes-Roles-5', array());
    2727}
    2828/* Datenbankeintrag löschen bei Löschen des Plugins */
     
    6868                $gr_dashboard_notes_id = get_option( 'GR_Dashboard_Notes-1' ); 
    6969                echo'<div class="notice notice-info is-dismissible">';
    70                 echo wp_kses($gr_dashboard_notes_id);
     70                echo wp_kses_post($gr_dashboard_notes_id);
    7171                echo '</div>';
    7272            }
  • gr-dashboard-notes/trunk/inc/gr-admin-menu.php

    r1810257 r1810277  
    6868                        /* Speichere die Notiz an der richtigen Stelle in die Datenbank */
    6969                        /* Sanitizing mit wp_kses & sanitizing_text_field */
    70                         $gr_dashboard_notes_setnewtext = wp_kses( $_POST['gr_dashboard_notes-field'] );
     70                        $gr_dashboard_notes_setnewtext = wp_kses_post( $_POST['gr_dashboard_notes-field'] );
    7171                        $gr_dashboard_notes_setnewroles = array_map( 'sanitize_text_field', wp_unslash( $_POST['gr_dashboard_userrole'] ) );   
    7272                        update_option( $gr_dashboard_notes_setnewid_note, $gr_dashboard_notes_setnewtext);
  • gr-dashboard-notes/trunk/readme.txt

    r1810259 r1810277  
    44Requires at least: 4.6
    55Tested up to: 4.9.1
    6 Stable tag: 1.0.0
     6Stable tag: 1.0.1
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    3232== Changelog ==
    3333
     34
     35= 1.0.1 =
     36 * Fixed counting notes notification
     37 * Fixed kses_error
     38
    3439= 1.0.0 =
    3540 * First Release
Note: See TracChangeset for help on using the changeset viewer.