Changeset 2999516
- Timestamp:
- 11/21/2023 10:56:22 AM (16 months ago)
- Location:
- jvm-rich-text-icons/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
jvm-rich-text-icons/trunk/dist/settings.js
r2735941 r2999516 54 54 var res = JSON.parse(file.xhr.response); 55 55 if (res.success) { 56 var icon = '<a id="icon-dialog-link-'+res.icon_class+'" href="#icon-dialog" class="icon-dialog-link icon" data-icon-class-full="'+res.icon_class_full+'" data-icon-class="'+res.icon_class+'" data-file="'+res.file+'" ><i class="icon '+res.icon_class_full+'" aria-hidden="true"> </i></a>\n';56 var icon = '<a id="icon-dialog-link-'+res.icon_class+'" href="#icon-dialog" class="icon-dialog-link icon" data-icon-class-full="'+res.icon_class_full+'" data-icon-class="'+res.icon_class+'" data-file="'+res.file+'" data-nonce="'+res.nonce+'"><i class="icon '+res.icon_class_full+'" aria-hidden="true"> </i></a>\n'; 57 57 $svgFileList.prepend(icon); 58 58 $svgFileList.show(); … … 93 93 var data = { 94 94 action : 'jvm-rich-text-icons-delete-icon', 95 file : $(this).data('file') 95 file : $(this).data('file'), 96 nonce : $(this).data('nonce') 96 97 } 97 98 $.ajax({ … … 149 150 $('#icon-dialog-preview').attr('class', $this.data('icon-class-full')); 150 151 $info.data('file', $this.data('file')); 152 $info.data('nonce', $this.data('nonce')); 151 153 $info.data('icon-class', $this.data('icon-class')); 152 154 -
jvm-rich-text-icons/trunk/plugin.php
r2999478 r2999516 3 3 * Plugin Name: JVM rich text icons 4 4 * Description: Add Font Awesome icons, or icons from a custom icon set to the Gutenberg editor. 5 * Version: 1.2. 45 * Version: 1.2.5 6 6 * Author: Joris van Montfort 7 7 * Author URI: https://jorisvm.nl … … 11 11 * @category Gutenberg 12 12 * @author Joris van Montfort 13 * @version 1.2. 413 * @version 1.2.5 14 14 * @package JVM rich text icons 15 15 */ -
jvm-rich-text-icons/trunk/readme.txt
r2999481 r2999516 88 88 == Changelog == 89 89 90 = 1.2.5 = 91 Security update. Fixed a vulnerability issue in plugin settings delete icon option. 92 90 93 = 1.2.4 = 91 94 Security update. Fixed a vulnerability issue in the uploader and plugin settings. -
jvm-rich-text-icons/trunk/src/settings.php
r2999478 r2999516 80 80 plugins_url( '/dist/settings.js', dirname( __FILE__ ) ), 81 81 array( 'jquery-ui-dialog'), // Dependencies, defined above. 82 null, // filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.build.js' ), // Version: filemtime — Gets file modification time.82 '1.2.5', // filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.build.js' ), // Version: filemtime — Gets file modification time. 83 83 true // Enqueue the script in the footer. 84 84 ); … … 103 103 */ 104 104 public function ajax_delete_icon() { 105 106 if (isset($_POST['file'])) { 105 if (isset($_POST['file']) && wp_verify_nonce($_POST['nonce'], 'jvm-rich-text-icons-delete-icon' )) { 107 106 $file = $_POST['file']; 108 107 $base = JVM_Richtext_icons::get_svg_directory(); … … 140 139 "icon_class" => $icon_class, 141 140 "file" => $new_file_name, 141 "nonce" => wp_create_nonce('jvm-rich-text-icons-delete-icon'), 142 142 'css_code' => JVM_Richtext_icons::parse_dynamic_css() 143 143 ]);
Note: See TracChangeset
for help on using the changeset viewer.