Plugin Directory

Changeset 3155411


Ignore:
Timestamp:
09/20/2024 08:36:29 PM (19 months ago)
Author:
apogi
Message:

Update to version 1.1.2 from GitHub

Location:
gf-sort-export
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • gf-sort-export/tags/1.1.2/gf-sort-export.php

    r3139709 r3155411  
    88 * License:         GPL2
    99 * License URI:     https://www.gnu.org/licenses/gpl-2.0.html
    10  * Version:         1.1.1
     10 * Version:         1.1.2
    1111 */
    1212
  • gf-sort-export/tags/1.1.2/src/SortExportPlugin.php

    r2606867 r3155411  
    1919        add_action('wp_ajax_gf-sort-export-store-order', \Closure::fromCallable([$this, 'storeOrder']));
    2020        add_action('wp_ajax_gf-sort-export-get-order', \Closure::fromCallable([$this, 'getOrder']));
     21        add_action('gform_noconflict_scripts', \Closure::fromCallable([$this, 'registerNoConflictHandles']));
     22        add_action('gform_noconflict_styles', \Closure::fromCallable([$this, 'registerNoConflictHandles']));
     23    }
     24
     25    /**
     26     * Adds the required handles to the no conflict lists.
     27     * @since 1.1.2
     28     */
     29    private function registerNoConflictHandles(array $handles): array
     30    {
     31        $handles[] = 'gf-sort-export';
     32
     33        return $handles;
    2134    }
    2235
     
    2740    private function loadScripts(): void
    2841    {
    29         if (rgget('page') !== 'gf_export' || !in_array(rgget('view'), ['', 'export_entry'], true)) {
     42        if (rgget('page') !== 'gf_export' || !in_array(rgget('subview'), ['', 'export_entry'], true)) {
    3043            return;
    3144        }
  • gf-sort-export/trunk/gf-sort-export.php

    r3139709 r3155411  
    88 * License:         GPL2
    99 * License URI:     https://www.gnu.org/licenses/gpl-2.0.html
    10  * Version:         1.1.1
     10 * Version:         1.1.2
    1111 */
    1212
  • gf-sort-export/trunk/src/SortExportPlugin.php

    r2606867 r3155411  
    1919        add_action('wp_ajax_gf-sort-export-store-order', \Closure::fromCallable([$this, 'storeOrder']));
    2020        add_action('wp_ajax_gf-sort-export-get-order', \Closure::fromCallable([$this, 'getOrder']));
     21        add_action('gform_noconflict_scripts', \Closure::fromCallable([$this, 'registerNoConflictHandles']));
     22        add_action('gform_noconflict_styles', \Closure::fromCallable([$this, 'registerNoConflictHandles']));
     23    }
     24
     25    /**
     26     * Adds the required handles to the no conflict lists.
     27     * @since 1.1.2
     28     */
     29    private function registerNoConflictHandles(array $handles): array
     30    {
     31        $handles[] = 'gf-sort-export';
     32
     33        return $handles;
    2134    }
    2235
     
    2740    private function loadScripts(): void
    2841    {
    29         if (rgget('page') !== 'gf_export' || !in_array(rgget('view'), ['', 'export_entry'], true)) {
     42        if (rgget('page') !== 'gf_export' || !in_array(rgget('subview'), ['', 'export_entry'], true)) {
    3043            return;
    3144        }
Note: See TracChangeset for help on using the changeset viewer.