Skip to content

Commit

Permalink
Update my-calendar-settings.php
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Jan 7, 2025
1 parent 60d0342 commit b29d8e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/my-calendar-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,8 @@ function mc_import_settings() {
if ( isset( $_FILES['mc-import-settings'] ) ) {
$nonce = wp_verify_nonce( $_POST['_wpnonce'], 'my-calendar-nonce' );
if ( $nonce ) {
$size = isset( $_FILES['mc-import-settings']['size'] ) ? absint( $_FILES['mc-import-settings']['size'] ) : 0;
$name = isset( $_FILES['mc-import-settings']['tmp_name'] ) ? sanitize_text_field( $_FILES['mc-import-settings']['tmp_name'] ) : '';
$size = isset( $_FILES['mc-import-settings']['size'] ) ? absint( $_FILES['mc-import-settings']['size'] ) : 0;
$name = isset( $_FILES['mc-import-settings']['tmp_name'] ) ? sanitize_text_field( $_FILES['mc-import-settings']['tmp_name'] ) : '';
global $wp_filesystem;
require_once ABSPATH . '/wp-admin/includes/file.php';
WP_Filesystem();
Expand Down

0 comments on commit b29d8e1

Please sign in to comment.