Changeset 3249784
- Timestamp:
- 03/03/2025 03:00:58 PM (12 months ago)
- Location:
- 3dprint-lite/trunk
- Files:
-
- 7 edited
-
3dprint-lite.php (modified) (2 diffs)
-
includes/3dprint-lite-admin-coatings.php (modified) (2 diffs)
-
includes/3dprint-lite-admin-infills.php (modified) (2 diffs)
-
includes/3dprint-lite-admin-materials.php (modified) (3 diffs)
-
includes/3dprint-lite-admin-printers.php (modified) (2 diffs)
-
includes/3dprint-lite-admin.php (modified) (9 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
3dprint-lite/trunk/3dprint-lite.php
r3204051 r3249784 6 6 Text Domain: 3dprint-lite 7 7 Plugin URI: http://www.wp3dprinting.com 8 Version: 2.1.3. 58 Version: 2.1.3.6 9 9 */ 10 10 … … 13 13 } 14 14 15 define('P3DLITE_VERSION', '2.1.3. 5');15 define('P3DLITE_VERSION', '2.1.3.6'); 16 16 17 17 if ( !function_exists( 'get_home_path' ) ) { -
3dprint-lite/trunk/includes/3dprint-lite-admin-coatings.php
r3141765 r3249784 373 373 */ 374 374 public function plugin_settings_page() { 375 375 $add_nonce = wp_create_nonce( 'sp_add_coating' ); 376 376 ?> 377 377 <div class="wrap"> … … 379 379 380 380 <div id="poststuff p3d-lite-poststuff"> 381 <button class="button-secondary" type="button" onclick="location.href='<?php echo esc_url(admin_url( 'admin.php?page=p3dlite_coatings&action=add '));?>'"><b><?php esc_html_e('Add Coating', '3dprint-lite');?></b></button>381 <button class="button-secondary" type="button" onclick="location.href='<?php echo esc_url(admin_url( 'admin.php?page=p3dlite_coatings&action=add&_wpnonce='.$add_nonce ));?>'"><b><?php esc_html_e('Add Coating', '3dprint-lite');?></b></button> 382 382 <div id="post-body" class="metabox-holder columns-2"> 383 383 <div id="post-body-content"> -
3dprint-lite/trunk/includes/3dprint-lite-admin-infills.php
r3141765 r3249784 371 371 */ 372 372 public function plugin_settings_page() { 373 373 $add_nonce = wp_create_nonce( 'sp_add_infill' ); 374 374 ?> 375 375 <div class="wrap"> … … 377 377 378 378 <div id="poststuff p3d-lite-poststuff"> 379 <button class="button-secondary" type="button" onclick="location.href='<?php echo esc_url(admin_url( 'admin.php?page=p3dlite_infills&action=add '));?>'"><b><?php esc_html_e('Add Infill', '3dprint-lite');?></b></button>379 <button class="button-secondary" type="button" onclick="location.href='<?php echo esc_url(admin_url( 'admin.php?page=p3dlite_infills&action=add&_wpnonce='.$add_nonce ));?>'"><b><?php esc_html_e('Add Infill', '3dprint-lite');?></b></button> 380 380 <div id="post-body" class="metabox-holder columns-2"> 381 381 <div id="post-body-content"> -
3dprint-lite/trunk/includes/3dprint-lite-admin-materials.php
r3141765 r3249784 277 277 278 278 if ( 'edit' === $this->current_action() ) { 279 280 279 // In our file that handles the request, verify the nonce. 281 280 $nonce = sanitize_key( $_REQUEST['_wpnonce'] ); … … 377 376 */ 378 377 public function plugin_settings_page() { 379 378 $add_nonce = wp_create_nonce( 'sp_add_material' ); 380 379 ?> 381 380 <div class="wrap"> … … 383 382 384 383 <div id="poststuff p3d-lite-poststuff"> 385 <button class="button-secondary" type="button" onclick="location.href='<?php echo esc_url(admin_url( 'admin.php?page=p3dlite_materials&action=add '));?>'"><b><?php esc_html_e('Add Material', '3dprint-lite');?></b></button>384 <button class="button-secondary" type="button" onclick="location.href='<?php echo esc_url(admin_url( 'admin.php?page=p3dlite_materials&action=add&_wpnonce='.$add_nonce ));?>'"><b><?php esc_html_e('Add Material', '3dprint-lite');?></b></button> 386 385 <div id="post-body" class="metabox-holder columns-2"> 387 386 <div id="post-body-content"> -
3dprint-lite/trunk/includes/3dprint-lite-admin-printers.php
r3141765 r3249784 371 371 */ 372 372 public function plugin_settings_page() { 373 373 $add_nonce = wp_create_nonce( 'sp_add_printer' ); 374 374 ?> 375 375 <div class="wrap"> … … 377 377 378 378 <div id="poststuff p3d-lite-poststuff"> 379 <button class="button-secondary" type="button" onclick="location.href='<?php echo esc_url(admin_url( 'admin.php?page=p3dlite_printers&action=add '));?>'"><b><?php esc_html_e('Add Printer', '3dprint-lite');?></b></button>379 <button class="button-secondary" type="button" onclick="location.href='<?php echo esc_url(admin_url( 'admin.php?page=p3dlite_printers&action=add&_wpnonce='.$add_nonce ));?>'"><b><?php esc_html_e('Add Printer', '3dprint-lite');?></b></button> 380 380 <div id="post-body" class="metabox-holder columns-2"> 381 381 <div id="post-body-content"> -
3dprint-lite/trunk/includes/3dprint-lite-admin.php
r3204051 r3249784 741 741 } 742 742 elseif (isset($_GET['action']) && $_GET['action'] == 'clone') { 743 744 if (!wp_verify_nonce(sanitize_key( $_REQUEST['_wpnonce'] ), 'sp_clone_printer')) { 745 wp_die('nonce does not match, try to refresh the page'); 746 } 743 747 $printer_id = (int)$_GET['printer']; 744 748 $printer_result = $wpdb->get_results( "select * from {$wpdb->prefix}p3dlite_printers where id='$printer_id'", ARRAY_A ); … … 750 754 } 751 755 elseif (isset($_GET['action']) && $_GET['action'] == 'add') { 756 if (!wp_verify_nonce(sanitize_key( $_REQUEST['_wpnonce'] ), 'sp_add_printer')) { 757 wp_die('nonce does not match, try to refresh the page'); 758 } 752 759 753 760 $default_printer_data = array( … … 820 827 821 828 if (isset($_GET['action']) && $_GET['action'] == 'edit') { 822 823 829 $material_id = (int)$_GET['material']; 824 830 $material_result = $wpdb->get_results( "select * from {$wpdb->prefix}p3dlite_materials where id='$material_id'", ARRAY_A ); … … 837 843 } 838 844 elseif (isset($_GET['action']) && $_GET['action'] == 'clone') { 845 846 if (!wp_verify_nonce(sanitize_key( $_REQUEST['_wpnonce'] ), 'sp_clone_material')) { 847 wp_die('nonce does not match, try to refresh the page'); 848 } 849 839 850 $material_id = (int)$_GET['material']; 840 851 $material_result = $wpdb->get_results( "select * from {$wpdb->prefix}p3dlite_materials where id='$material_id'", ARRAY_A ); … … 869 880 } 870 881 elseif (isset($_GET['action']) && $_GET['action'] == 'add') { 882 if (!wp_verify_nonce(sanitize_key( $_REQUEST['_wpnonce'] ), 'sp_add_material')) { 883 wp_die('nonce does not match, try to refresh the page'); 884 } 871 885 872 886 $default_material_data = array( … … 942 956 } 943 957 elseif (isset($_GET['action']) && $_GET['action'] == 'clone') { 958 if (!wp_verify_nonce(sanitize_key( $_REQUEST['_wpnonce'] ), 'sp_clone_coating')) { 959 wp_die('nonce does not match, try to refresh the page'); 960 } 961 944 962 $coating_id = (int)$_GET['coating']; 945 963 $coating_result = $wpdb->get_results( "select * from {$wpdb->prefix}p3dlite_coatings where id='$coating_id'", ARRAY_A ); … … 951 969 } 952 970 elseif (isset($_GET['action']) && $_GET['action'] == 'add') { 971 if (!wp_verify_nonce(sanitize_key( $_REQUEST['_wpnonce'] ), 'sp_add_coating')) { 972 wp_die('nonce does not match, try to refresh the page'); 973 } 953 974 954 975 $default_coating_data = array( … … 1174 1195 } 1175 1196 elseif (isset($_GET['action']) && $_GET['action'] == 'clone') { 1197 if (!wp_verify_nonce(sanitize_key( $_REQUEST['_wpnonce'] ), 'sp_clone_infill')) { 1198 wp_die('nonce does not match, try to refresh the page'); 1199 } 1176 1200 $infill_id = (int)$_GET['infill']; 1177 1201 $infill_result = $wpdb->get_results( "select * from {$wpdb->prefix}p3dlite_infills where id='$infill_id'", ARRAY_A ); … … 1183 1207 } 1184 1208 elseif (isset($_GET['action']) && $_GET['action'] == 'add') { 1209 if (!wp_verify_nonce(sanitize_key( $_REQUEST['_wpnonce'] ), 'sp_add_infill')) { 1210 wp_die('nonce does not match, try to refresh the page'); 1211 } 1212 1185 1213 1186 1214 $default_infill_data = array( -
3dprint-lite/trunk/readme.txt
r3204051 r3249784 4 4 Requires at least: 3.5 5 5 Tested up to: 6.7 6 Stable tag: 2.1.3. 56 Stable tag: 2.1.3.6 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 110 110 == Changelog == 111 111 112 = 2.1.3.6 = 113 Security fix 114 112 115 = 2.1.3.5 = 113 116 Price requests: material, printer, coating, infill fields are editable
Note: See TracChangeset
for help on using the changeset viewer.