WordPress.org

Making WordPress.org


Ignore:
Timestamp:
10/19/2017 12:16:05 AM (7 months ago)
Author:
SergeyBiryukov
Message:

Plugin Directory: Adjust the condition for displaying the upload form for better readability.

See #2386.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload.php

    r6045 r6046  
    127127            <?php endif; // wp_verify_nonce() && 'upload' === $_POST['action'] ?>
    128128
    129             <?php if ( ! $upload_result && ! $submitted_counts->total || is_wp_error( $upload_result ) ) : ?>
     129            <?php if ( ! $submitted_counts->total && ( ! $upload_result || is_wp_error( $upload_result ) ) ) : ?>
    130130
    131131                <form id="upload_form" class="plugin-upload-form" enctype="multipart/form-data" method="POST" action="">
Note: See TracChangeset for help on using the changeset viewer.