Plugin Directory

Changeset 3106647


Ignore:
Timestamp:
06/24/2024 12:11:31 PM (20 months ago)
Author:
themely
Message:

Version 1.1.2: Added stricter accept attributes in file upload inputs in /inc/class-tdi-main.php and added pattern attribute to file upload inputs in /inc/class-tdi-main.php

Location:
theme-demo-import/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • theme-demo-import/trunk/inc/class-tdi-main.php

    r2810046 r3106647  
    153153                <div class="TDI__file-upload">
    154154                    <h3><label for="content-file-upload"><?php esc_html_e( 'Choose a XML file for content import:', 'theme-demo-import' ); ?></label></h3>
    155                     <input id="TDI__content-file-upload" type="file" accept=".xml" name="content-file-upload">
     155                    <input id="TDI__content-file-upload" type="file" accept="application/xml,.xml" pattern="^.*\.(xml)$" name="content-file-upload">
    156156                </div>
    157157
    158158                <div class="TDI__file-upload">
    159159                    <h3><label for="widget-file-upload"><?php esc_html_e( 'Choose a WIE or JSON file for widget import:', 'theme-demo-import' ); ?></label> <span><?php esc_html_e( '(*optional)', 'theme-demo-import' ); ?></span></h3>
    160                     <input id="TDI__widget-file-upload" type="file" accept=".wie,.json" name="widget-file-upload">
     160                    <input id="TDI__widget-file-upload" type="file" accept=".wie,.json,application/json" pattern="^.*\.(wie|json)$" name="widget-file-upload">
    161161                </div>
    162162
    163163                <div class="TDI__file-upload">
    164164                    <h3><label for="customizer-file-upload"><?php esc_html_e( 'Choose a DAT file for customizer import:', 'theme-demo-import' ); ?></label> <span><?php esc_html_e( '(*optional)', 'theme-demo-import' ); ?></span></h3>
    165                     <input id="TDI__customizer-file-upload" type="file" accept=".dat" name="customizer-file-upload">
     165                    <input id="TDI__customizer-file-upload" type="file" accept="application/dat,.dat" pattern="^.*\.(dat)$" name="customizer-file-upload">
    166166                </div>
    167167
  • theme-demo-import/trunk/readme.txt

    r3081549 r3106647  
    44Requires at least: 4.7
    55Tested up to: 6.1
    6 Stable tag: 1.1.1
     6Stable tag: 1.1.2
    77License: GPLv3 or later
    88
     
    283283
    284284- INITIAL RELEASE
     285
     286
     287**1.1.2 - 06/24/2024**
     288
     289- Added stricter accept attributes in file upload inputs in /inc/class-tdi-main.php (lines 155, 160 and 165)
     290- Added pattern attribute to file upload inputs in /inc/class-tdi-main.php (lines 155, 160 and 165)
  • theme-demo-import/trunk/theme-demo-import.php

    r2810206 r3106647  
    55Plugin URI: https://wordpress.org/plugins/theme-demo-import/
    66Description: Quickly import demo content, widgets and settings for your new theme. This provides a basic layout to build your website and speed up the development process.
    7 Version: 1.1.1
     7Version: 1.1.2
    88Author: Themely
    99Author URI: https://www.themely.com
Note: See TracChangeset for help on using the changeset viewer.