Changeset 13794 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php
- Timestamp:
- 06/10/2024 07:45:28 AM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php
r13650 r13794 79 79 80 80 $zip_file = $_FILES['zip_file']['tmp_name']; 81 $upload_comment = trim( wp_unslash( $_POST['comment'] ) );81 $upload_comment = trim( wp_unslash( $_POST['comment'] ?? '' ) ); 82 82 $has_upload_token = $this->has_valid_upload_token(); 83 83 $this->plugin_dir = Filesystem::unzip( $zip_file ); … … 423 423 $post_args = array( 424 424 'ID' => $plugin_post->ID ?? 0, 425 'post_author' => $plugin_post->post_author ?? get_current_user_id(), 425 426 'post_title' => $this->plugin['Name'], 426 427 'post_name' => $this->plugin_slug,
Note: See TracChangeset
for help on using the changeset viewer.