Changeset 2469506
- Timestamp:
- 02/05/2021 12:51:19 PM (5 years ago)
- File:
-
- 1 edited
-
books-papers/trunk/books-n-papers.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
books-papers/trunk/books-n-papers.php
r2468764 r2469506 3 3 Plugin Name: Books & Papers 4 4 Plugin URI: 5 Version: 0.2021020 45 Version: 0.20210205 6 6 Author: Research in Theory of Magnetism Department of Taras Shevchenko National University of Kyiv 7 7 Author_URI: http://ritm.knu.ua/ … … 15 15 add_option('bnpp_upload_dir_abs', true); 16 16 add_option('bnpp_previous_db_prefix',get_option('custom_db_prefix')); 17 add_option('bnpp_lstyle_value'); 17 18 add_option('bnpp_custom_char1_name'); 18 19 add_option('bnpp_custom_char1_value'); … … 896 897 if(isset($_POST["article_list"])&& check_admin_referer('bnp_list_setting') && current_user_can('publish_pages')) 897 898 { 898 $kses_filter = array('h1' => array( ),'h2' => array(),'h3' => array(),'h4' => array(),'h5' => array(),'h6' => array(),'h7' => array(),'h8' => array(),'a' => array('href' => array()),'i' => array(),'b' => array(),'div' => array('style' => array()),'strong' => array(),'br' => array(),'p' => array());899 $kses_filter = array('h1' => array('style' => array(), 'class' => array()),'h2' => array('style' => array(), 'class' => array()),'h3' => array('style' => array(), 'class' => array()),'h4' => array('style' => array(), 'class' => array()),'h5' => array('style' => array(), 'class' => array()),'h6' => array('style' => array(), 'class' => array()),'h7' => array('style' => array(), 'class' => array()),'h8' => array('style' => array(), 'class' => array()),'a' => array('href' => array(), 'target' => array(), 'rel' => array(), 'type' => array(), 'download' => array(), 'style' => array(), 'class' => array()),'i' => array('style' => array(), 'class' => array()),'b' => array('style' => array(), 'class' => array()),'div' => array('style' => array(), 'class' => array()),'strong' => array('style' => array(), 'class' => array()),'br' => array('style' => array(), 'class' => array()),'p' => array('style' => array(), 'class' => array())); 899 900 update_option('bnpp_article_head',wp_kses($_POST["article_head"], $kses_filter)); 900 901 update_option('bnpp_article_list',wp_kses($_POST["article_list"], $kses_filter)); … … 913 914 update_option('bnpp_list_division_style',sanitize_text_field($_POST["listDivisionStyle"])); 914 915 update_option('bnpp_list_order',sanitize_text_field($_POST["listOrder"])); 916 echo "<script type='text/javascript'> window.location=document.location.href;</script>"; 917 } 918 if(isset($_POST["lstylevalue"])&& check_admin_referer('bnp_lstyle_setting') && current_user_can('publish_pages')) 919 { 920 update_option('bnpp_lstyle_value',sanitize_text_field($_POST["lstylevalue"])); 915 921 echo "<script type='text/javascript'> window.location=document.location.href;</script>"; 916 922 }
Note: See TracChangeset
for help on using the changeset viewer.