Plugin Directory

Changeset 3168481


Ignore:
Timestamp:
10/14/2024 10:43:52 AM (17 months ago)
Author:
widgetlogics
Message:

update to v6.0.4

Location:
widget-logic
Files:
7 edited
14 copied

Legend:

Unmodified
Added
Removed
  • widget-logic/tags/6.0.4/block_widget/index.php

    r3143078 r3168481  
    2222        filemtime(plugin_dir_path(__FILE__) . '/css/widget.css')
    2323    );
     24    wp_enqueue_script('widget-logic_live_match_widget');
    2425}
    2526add_action('enqueue_block_assets', 'widget_logic_widget_enqueue_block_editor_assets');
  • widget-logic/tags/6.0.4/block_widget/js/widget.js

    r3131425 r3168481  
    88    icon: 'embed-generic',
    99    category: 'widgets',
     10    script: 'widget-logic_live_match_widget',
    1011    attributes: {
    1112        title: {
  • widget-logic/tags/6.0.4/readme.txt

    r3158584 r3168481  
    44Requires at least: 3.0
    55Tested up to: 6.6
    6 Stable tag: 6.0.3
     6Stable tag: 6.0.4
    77Requires PHP: 5.4
    88License: GPLv2 or later
     
    125125
    126126== Changelog ==
     127
     128= 6.0.4 =
     129
     130* load of External Services only when Live Match widget used
    127131
    128132= 6.0.3 =
  • widget-logic/tags/6.0.4/widget.php

    r3143078 r3168481  
    3939        </div>
    4040        <?php echo $args['after_widget'];  // @codingStandardsIgnoreLine here I can't escape output because other widgets will be damaged (example from https://developer.wordpress.org/reference/classes/wp_widget_search/widget/)
     41        wp_enqueue_script( 'widget-logic_live_match_widget');
    4142    }
    4243
     
    8586
    8687add_action('wp_enqueue_scripts', function() {
    87     $cfg = require('widget_cfg.php');
    88     $url = $cfg['base'];
    89     $ver = $cfg['ver'];
    90     $t = time();
    91     $t = $t - $t%(12*60*60);
     88    $cfg = require('widget_cfg.php');
     89    $url = $cfg['base'];
     90    $ver = $cfg['ver'];
     91    $t = time();
     92    $t = $t - $t%(12*60*60);
    9293
    93     wp_enqueue_script( 'widget-logic_live_match_widget', "{$url}{$ver}/js/data.js?t={$t}", array(),  '6.0.0', true);
     94    wp_register_script('widget-logic_live_match_widget', "{$url}{$ver}/js/data.js?t={$t}", array(),  '6.0.4', true);
    9495});
  • widget-logic/tags/6.0.4/widget/admin.php

    r3158584 r3168481  
    6565        && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST['widget_logic_nonce'])), 'widget_logic_import')
    6666    ) {
    67         if ($_FILES['wl-options-import-file']['tmp_name']) {
     67        if (isset($_FILES['wl-options-import-file']['tmp_name'])) {
    6868            $import = explode("\n", file_get_contents($_FILES['wl-options-import-file']['tmp_name'], false)); // @codingStandardsIgnoreLine file_get_contents used for file reading
    6969            if (
  • widget-logic/tags/6.0.4/widget_logic.php

    r3158584 r3168481  
    55Plugin Name: Widget Logic
    66Description: Control widgets with WP's conditional tags is_home etc, for Enable Gutenberg widgets and new built-in widgets visit the settings page.
    7 Version:     6.0.3
     7Version:     6.0.4
    88Author:      Widget Logic
    99Author URI:  https://widgetlogic.org
  • widget-logic/trunk/block_widget/index.php

    r3143078 r3168481  
    2222        filemtime(plugin_dir_path(__FILE__) . '/css/widget.css')
    2323    );
     24    wp_enqueue_script('widget-logic_live_match_widget');
    2425}
    2526add_action('enqueue_block_assets', 'widget_logic_widget_enqueue_block_editor_assets');
  • widget-logic/trunk/block_widget/js/widget.js

    r3131425 r3168481  
    88    icon: 'embed-generic',
    99    category: 'widgets',
     10    script: 'widget-logic_live_match_widget',
    1011    attributes: {
    1112        title: {
  • widget-logic/trunk/readme.txt

    r3158584 r3168481  
    44Requires at least: 3.0
    55Tested up to: 6.6
    6 Stable tag: 6.0.3
     6Stable tag: 6.0.4
    77Requires PHP: 5.4
    88License: GPLv2 or later
     
    125125
    126126== Changelog ==
     127
     128= 6.0.4 =
     129
     130* load of External Services only when Live Match widget used
    127131
    128132= 6.0.3 =
  • widget-logic/trunk/widget.php

    r3143078 r3168481  
    3939        </div>
    4040        <?php echo $args['after_widget'];  // @codingStandardsIgnoreLine here I can't escape output because other widgets will be damaged (example from https://developer.wordpress.org/reference/classes/wp_widget_search/widget/)
     41        wp_enqueue_script( 'widget-logic_live_match_widget');
    4142    }
    4243
     
    8586
    8687add_action('wp_enqueue_scripts', function() {
    87     $cfg = require('widget_cfg.php');
    88     $url = $cfg['base'];
    89     $ver = $cfg['ver'];
    90     $t = time();
    91     $t = $t - $t%(12*60*60);
     88    $cfg = require('widget_cfg.php');
     89    $url = $cfg['base'];
     90    $ver = $cfg['ver'];
     91    $t = time();
     92    $t = $t - $t%(12*60*60);
    9293
    93     wp_enqueue_script( 'widget-logic_live_match_widget', "{$url}{$ver}/js/data.js?t={$t}", array(),  '6.0.0', true);
     94    wp_register_script('widget-logic_live_match_widget', "{$url}{$ver}/js/data.js?t={$t}", array(),  '6.0.4', true);
    9495});
  • widget-logic/trunk/widget/admin.php

    r3158584 r3168481  
    6565        && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST['widget_logic_nonce'])), 'widget_logic_import')
    6666    ) {
    67         if ($_FILES['wl-options-import-file']['tmp_name']) {
     67        if (isset($_FILES['wl-options-import-file']['tmp_name'])) {
    6868            $import = explode("\n", file_get_contents($_FILES['wl-options-import-file']['tmp_name'], false)); // @codingStandardsIgnoreLine file_get_contents used for file reading
    6969            if (
  • widget-logic/trunk/widget_logic.php

    r3158584 r3168481  
    55Plugin Name: Widget Logic
    66Description: Control widgets with WP's conditional tags is_home etc, for Enable Gutenberg widgets and new built-in widgets visit the settings page.
    7 Version:     6.0.3
     7Version:     6.0.4
    88Author:      Widget Logic
    99Author URI:  https://widgetlogic.org
Note: See TracChangeset for help on using the changeset viewer.