| @@ -14,11 +14,11 @@ | ||
| 14 | 14 | public $chmod_file = 0644; |
| 15 | 15 | private $has_permission = false; |
| 16 | 16 | |
| 17 | 17 | public function __construct( $atts ) { |
| 18 | - $this->folder_name = $atts['folder_name'] ?? ''; | |
| 18 | + $this->folder_name = isset( $atts['folder_name'] ) ? $atts['folder_name'] : ''; | |
| 19 | 19 | $this->file_name = $atts['file_name']; |
| 20 | - $this->error_message = $atts['error_message'] ?? ''; | |
| 20 | + $this->error_message = isset( $atts['error_message'] ) ? $atts['error_message'] : ''; | |
| 21 | 21 | $this->uploads = wp_upload_dir(); |
| 22 | 22 | $this->set_new_file_path( $atts ); |
| 23 | 23 | $this->chmod_dir = defined( 'FS_CHMOD_DIR' ) ? FS_CHMOD_DIR : ( fileperms( ABSPATH ) & 0777 | 0755 ); |
| 24 | 24 | $this->chmod_file = defined( 'FS_CHMOD_FILE' ) ? FS_CHMOD_FILE : ( fileperms( ABSPATH . 'index.php' ) & 0777 | 0644 ); |