Making WordPress.org

Changeset 12092


Ignore:
Timestamp:
09/26/2022 10:30:10 PM (3 years ago)
Author:
coffee2code
Message:

Photo Directory, Uploads: Define hidden fields as HTML instead of via shortcode to prevent values being saved to post meta.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/uploads.php

    r12091 r12092  
    914914            } else {
    915915                $valid_upload_mimetypes = implode( ',', array_values( self::restrict_upload_mimes() ) );
    916                 $content .= '[input type="hidden" name="post_title" value=""]' . "\n";
     916                $content .= '<input type="hidden" name="post_title" value="" id="ugc-input-post_title" />' . "\n";
    917917                $content .= sprintf(
    918                     '[input type="hidden" name="MAX_FILE_SIZE" value="%s"]' . "\n",
     918                    '<input type="hidden" name="MAX_FILE_SIZE" value="%s" id="ugc-input-max_file_size" />' . "\n",
    919919                    self::get_maximum_photo_file_size()
    920920                );
Note: See TracChangeset for help on using the changeset viewer.