Changeset 1810277
- Timestamp:
- 01/27/2018 01:42:41 AM (8 years ago)
- Location:
- gr-dashboard-notes
- Files:
-
- 6 added
- 3 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/LICENSE.txt (added)
-
tags/1.0.1/gr-dashboard-notes.php (added)
-
tags/1.0.1/inc (added)
-
tags/1.0.1/inc/gr-admin-menu.php (added)
-
tags/1.0.1/readme.txt (added)
-
trunk/gr-dashboard-notes.php (modified) (4 diffs)
-
trunk/inc/gr-admin-menu.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gr-dashboard-notes/trunk/gr-dashboard-notes.php
r1810257 r1810277 4 4 * Plugin URI: https://wordpress.org/plugins/gr-dashboard-notes/ 5 5 * Description: This plugin let you create notes on the dashboard for different roles of your choice. 6 * Version: 1.0. 06 * Version: 1.0.1 7 7 * Author: Achim T. 8 8 * Author URI: https://www.Game-Reset.de … … 14 14 register_activation_hook(__FILE__,'gr_dashboard_notes_activate'); 15 15 function gr_dashboard_notes_activate() { 16 add_option('GR_Dashboard_Notes-ID', array( ""));16 add_option('GR_Dashboard_Notes-ID', array()); 17 17 add_option('GR_Dashboard_Notes-1', ''); 18 18 add_option('GR_Dashboard_Notes-2', ''); … … 20 20 add_option('GR_Dashboard_Notes-4', ''); 21 21 add_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', '');22 add_option('GR_Dashboard_Notes-Roles-1', array()); 23 add_option('GR_Dashboard_Notes-Roles-2', array()); 24 add_option('GR_Dashboard_Notes-Roles-3', array()); 25 add_option('GR_Dashboard_Notes-Roles-4', array()); 26 add_option('GR_Dashboard_Notes-Roles-5', array()); 27 27 } 28 28 /* Datenbankeintrag löschen bei Löschen des Plugins */ … … 68 68 $gr_dashboard_notes_id = get_option( 'GR_Dashboard_Notes-1' ); 69 69 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); 71 71 echo '</div>'; 72 72 } -
gr-dashboard-notes/trunk/inc/gr-admin-menu.php
r1810257 r1810277 68 68 /* Speichere die Notiz an der richtigen Stelle in die Datenbank */ 69 69 /* 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'] ); 71 71 $gr_dashboard_notes_setnewroles = array_map( 'sanitize_text_field', wp_unslash( $_POST['gr_dashboard_userrole'] ) ); 72 72 update_option( $gr_dashboard_notes_setnewid_note, $gr_dashboard_notes_setnewtext); -
gr-dashboard-notes/trunk/readme.txt
r1810259 r1810277 4 4 Requires at least: 4.6 5 5 Tested up to: 4.9.1 6 Stable tag: 1.0. 06 Stable tag: 1.0.1 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 32 32 == Changelog == 33 33 34 35 = 1.0.1 = 36 * Fixed counting notes notification 37 * Fixed kses_error 38 34 39 = 1.0.0 = 35 40 * First Release
Note: See TracChangeset
for help on using the changeset viewer.