Plugin Directory

Changeset 3749398


Ignore:
Timestamp:
10/15/2026 10:10:12 PM (3 weeks ago)
Author:
autothinkgroup
Message:

1.3.4: fix fatal error when an older copy is active

Location:
footfall-reviews-by-autothink
Files:
35 added
3 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • footfall-reviews-by-autothink/trunk/admin/js/ffrat-admin.js

    r3749388 r3749398  
    11(function(){'use strict';
    2  var FFRAT_BUILD='1.3.3';
     2 var FFRAT_BUILD='1.3.4';
    33 var catalogue=ffratAdmin.catalogue||{},state={library:catalogue.items||[],filters:catalogue.filters||[],source:'google',template:null,config:null,widgets:[],locations:[]},root=document.querySelector('.ffrat-wrap'),previewOrigin='https://footfallreviews.com';if(!root)return;
    44 var reduced=window.matchMedia&&window.matchMedia('(prefers-reduced-motion: reduce)').matches;
  • footfall-reviews-by-autothink/trunk/footfall-reviews-by-autothink.php

    r3749388 r3749398  
    44 * Plugin URI: https://footfallreviews.com/widgets
    55 * Description: Add customisable Google and Footfall review widgets to any WordPress page.
    6  * Version: 1.3.3
     6 * Version: 1.3.4
    77 * Author: Footfall Reviews (AutoThink)
    88 * Author URI: https://footfallreviews.com
    … …  
    1616if ( ! defined( 'ABSPATH' ) ) { exit; }
    1717
    18 // Another Footfall Reviews copy (older manual upload) is already loaded: stay dormant so nothing is
    19 // declared twice, back up the connection, and ask the admin to deactivate the old copy.
    20 if ( defined( 'FFRAT_FILE' ) ) {
     18// Another Footfall Reviews copy (older manual upload) is active or already loaded: stay dormant so
     19// nothing is declared twice in either load order, back up the connection, and ask the admin to remove it.
     20if ( ! function_exists( 'ffrat_other_copy_active' ) ) {
     21        function ffrat_other_copy_active( $self ) {
     22                $active = (array) get_option( 'active_plugins', array() );
     23                if ( is_multisite() ) { $active = array_merge( $active, array_keys( (array) get_site_option( 'active_sitewide_plugins', array() ) ) ); }
     24                $mine = basename( dirname( $self ) ) . '/' . basename( $self );
     25                foreach ( $active as $basename ) {
     26                        $basename = (string) $basename;
     27                        if ( $basename !== $mine && false !== stripos( $basename, 'footfall' ) && false !== strpos( $basename, '/' ) ) { return true; }
     28                }
     29                return false;
     30        }
     31}
     32if ( defined( 'FFRAT_FILE' ) || class_exists( 'FFRAT_Plugin', false ) || ffrat_other_copy_active( __FILE__ ) ) {
    2133        add_action( 'admin_init', 'ffrat_dormant_backup' );
    2234        add_action( 'admin_notices', 'ffrat_dormant_notice' );
    … …  
    3446}
    3547
    36 define( 'FFRAT_VERSION', '1.3.3' );
     48define( 'FFRAT_VERSION', '1.3.4' );
    3749define( 'FFRAT_FILE', __FILE__ );
    3850define( 'FFRAT_DIR', plugin_dir_path( __FILE__ ) );
    … …  
    4759require_once FFRAT_DIR . 'includes/class-ffrat-migrate.php';
    4860
    49 register_activation_hook( __FILE__, array( 'FFRAT_Migrate', 'on_activate' ) );
    50 register_deactivation_hook( __FILE__, 'ffrat_deactivate' );
    51 function ffrat_deactivate() { wp_clear_scheduled_hook( 'ffrat_daily_checkin' ); }
     61register_deactivation_hook( __FILE__, static function () { wp_clear_scheduled_hook( 'ffrat_daily_checkin' ); } );
    5262FFRAT_Migrate::boot();
    5363FFRAT_Plugin::instance()->boot();
  • footfall-reviews-by-autothink/trunk/includes/asset-files.generated.php

    r3749388 r3749398  
    33// GENERATED by scripts/sync-plugin-version.ts — do not edit.
    44return array(
    5         'admin_js' => 'admin/js/ffrat-admin.1.3.3.63bbd58e6c.js',
    6         'admin_css' => 'admin/css/ffrat-admin.1.3.3.586c29359d.css',
    7         'block_js' => 'blocks/widget/index.1.3.3.e79ae7802b.js',
     5        'admin_js' => 'admin/js/ffrat-admin.1.3.4.f3f668f974.js',
     6        'admin_css' => 'admin/css/ffrat-admin.1.3.4.586c29359d.css',
     7        'block_js' => 'blocks/widget/index.1.3.4.e79ae7802b.js',
    88);
  • footfall-reviews-by-autothink/trunk/readme.txt

    r3749388 r3749398  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.3.3
     7Stable tag: 1.3.4
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    9393== Changelog ==
    9494
     95= 1.3.4 =
     96* Fixes a critical error when this version was installed while an older manually uploaded copy of Footfall Reviews was still active. The new copy now waits safely until the old one is removed.
     97
    9598= 1.3.3 =
    9699* Now delivered through the WordPress.org plugin directory, so future updates appear in Dashboard → Updates like any other plugin.
    … …  
    205208== Upgrade Notice ==
    206209
    207 = 1.3.3 =
    208 Now delivered through the WordPress.org plugin directory, so future updates appear in Dashboard → Updates like any other plugin.
     210= 1.3.4 =
     211Fixes a critical error when this version was installed while an older manually uploaded copy of Footfall Reviews was still active. The new copy now waits safely until the old one is removed.
Note: See TracChangeset for help on using the changeset viewer.