Plugin Directory

Changeset 3321813


Ignore:
Timestamp:
07/03/2025 01:26:49 PM (9 months ago)
Author:
eesywp
Message:

bug fixes

Location:
eesy-id2wp-publish-indesign-html5
Files:
35 added
4 edited

Legend:

Unmodified
Added
Removed
  • eesy-id2wp-publish-indesign-html5/trunk/admin/class-id2wp-admin.php

    r3296550 r3321813  
    2828        add_action( 'admin_footer', array( $this, 'add_footer' ) );
    2929    }
    30     function update_option_id2wp_settings_applications_folder($old_value, $new_value) {
    31         if ($old_value !== $new_value) {
     30    function update_option_id2wp_settings_applications_folder( $old_value, $new_value ) {
     31        if ( $old_value !== $new_value ) {
    3232            ID2WP_Rewrite_Handler::register_rewrite_rules();
    3333        }
     
    7272
    7373    function add_footer() {
     74        $screen = get_current_screen();
     75        if(!in_array($screen->id,array('id2wp-upload'))){
     76            return;
     77        }
    7478        echo ID2WP_HELP::render();
    7579    }
     
    9599     *
    96100     * @param string $column The name of the column to render.
    97      * @param int $post_id The ID of the project.
     101     * @param int    $post_id The ID of the project.
    98102     * @return void
    99103     */
     
    113117     */
    114118    function load_scripts() {
     119
     120        $screen = get_current_screen();
     121        if ( ! in_array( $screen->id, array( 'edit-id2wp-upload', 'id2wp-upload' ) ) ) {
     122            return;
     123        }
     124
    115125        wp_enqueue_style( 'id2wp-admin-css', ID2WP_PLUGIN_URL . 'admin/includes/admin.css', array(), '1.0.0', 'all' );
    116126        wp_enqueue_style( 'id2wp-color-picker', ID2WP_PLUGIN_URL . 'admin/includes/colorpicker/colorpicker.min.css', array(), '1.0.0', 'all' );
     
    121131
    122132    /**
    123      * Adds the admin pages.   
     133     * Adds the admin pages.
    124134     *
    125135     * This function adds a new menu page and submenu pages to the WordPress admin area.
     
    143153
    144154        $args = array(
    145             'type' => 'string',
     155            'type'              => 'string',
    146156            'sanitize_callback' => 'sanitize_text_field',
    147             'default' => 'eesy-id2wp-light'
    148             );
    149 
    150         register_setting( 'id2wp_settings', 'id2wp_settings_applications_folder' ,$args);
     157            'default'           => 'eesy-id2wp-light',
     158        );
     159
     160        register_setting( 'id2wp_settings', 'id2wp_settings_applications_folder', $args );
    151161
    152162        add_settings_section(
  • eesy-id2wp-publish-indesign-html5/trunk/eesy-id2wp-publish-indesign-html5.php

    r3301582 r3321813  
    44Plugin URI: https://eesy.com/eesy_id2wp/
    55Description: A plugin for publishing InDesign HTML5 packages in WordPress. The HTML5 packages exported from InDesign are optimised during upload and can then be edited.
    6 Version: 1.0.2
     6Version: 1.0.3
    77Requires at least: 6.0
    88Requires PHP: 8.0
  • eesy-id2wp-publish-indesign-html5/trunk/includes/class-id2wp-rewrite-handler.php

    r3301582 r3321813  
    113113                    $mime_type = wp_check_filetype($requested_file)['type'];
    114114                    header('Content-Type: ' . $mime_type);
     115                    if (file_exists($requested_file)) {
     116                        header('Content-Length: ' . filesize($requested_file));
     117                    }
     118
     119
    115120                   
    116121                    // Initialize WP_Filesystem
  • eesy-id2wp-publish-indesign-html5/trunk/readme.txt

    r3301582 r3321813  
    55Requires at least: 6.0
    66Tested up to: 6.8.1
    7 Stable tag: 1.0.2
     7Stable tag: 1.0.3
    88Requires PHP: 8.0
    99License: GPLv2 or later
     
    140140* Improved password logic in Backend
    141141* Fixed minor bugs
    142 * Tested for newer Wordpress Version
     142* Tested for newer Wordpress version
    143143
    144144= 1.0.2 =
    145145* Fix Rewrite Rules
     146
     147= 1.0.3 =
     148* Fixed minor bugs (Missing Header)
Note: See TracChangeset for help on using the changeset viewer.