Plugin Directory

Changeset 2883876


Ignore:
Timestamp:
03/20/2023 11:03:33 PM (3 years ago)
Author:
skyminds
Message:

release Sky Login Redirect v3.6.9

Location:
sky-login-redirect/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • sky-login-redirect/trunk/freemius/includes/class-fs-api.php

    r2882929 r2883876  
    379379            }
    380380
    381             return Freemius_Api_WordPress::RemoteRequest( $url, $remote_args );
     381            if ( method_exists( 'Freemius_Api_WordPress', 'RemoteRequest' ) ) {
     382                return Freemius_Api_WordPress::RemoteRequest( $url, $remote_args );
     383            }
     384
     385            // The following is for backward compatibility when a modified PHP SDK version is in use and the `Freemius_Api_WordPress:RemoteRequest()` method doesn't exist.
     386            $response = wp_remote_request( $url, $remote_args );
     387
     388            if (
     389                empty( $response['headers'] ) ||
     390                empty( $response['headers']['x-api-server'] )
     391            ) {
     392                // API is considered blocked if the response doesn't include the `x-api-server` header. When there's no error but this header doesn't exist, the response is usually not in the expected form (e.g., cannot be JSON-decoded).
     393                $response = new WP_Error( 'api_blocked', htmlentities( $response['body'] ) );
     394            }
     395
     396            return $response;
    382397        }
    383398
     
    463478            if ( $is_http ) {
    464479                Freemius_Api_WordPress::SetHttp();
    465             } else {
     480            } else if ( method_exists( 'Freemius_Api_WordPress', 'SetHttps' ) ) {
    466481                Freemius_Api_WordPress::SetHttps();
    467482            }
  • sky-login-redirect/trunk/freemius/includes/sdk/FreemiusWordPress.php

    r2882929 r2883876  
    575575        #----------------------------------------------------------------------------------
    576576
     577        /**
     578         * This method exists only for backward compatibility to prevent a fatal error from happening when called from an outdated piece of code.
     579         *
     580         * @param mixed $pPong
     581         *
     582         * @return bool
     583         */
     584        public static function Test( $pPong = null ) {
     585            return (
     586                is_object( $pPong ) &&
     587                isset( $pPong->api ) &&
     588                'pong' === $pPong->api
     589            );
     590        }
     591
    577592        /**
    578593         * Ping API to test connectivity.
  • sky-login-redirect/trunk/freemius/start.php

    r2882929 r2883876  
    1616     * @var string
    1717     */
    18     $this_sdk_version = '2.5.4.2';
     18    $this_sdk_version = '2.5.5';
    1919
    2020    #region SDK Selection Logic --------------------------------------------------------------------
  • sky-login-redirect/trunk/lib/css/slr.css

    r2882929 r2883876  
    123123  border-style: solid;
    124124  -webkit-appearance: none;
     125  appearance: none;
    125126  border-radius: 3px;
    126127  white-space: nowrap;
  • sky-login-redirect/trunk/lib/js/slr.js

    r2819733 r2883876  
     1"use strict";
     2
    13jQuery(document).ready(function () {
    24
     
    4446    if (jQuery(".cf-complex__tabs--tabbed-vertical .cf-complex__inserter").length > 0) { jQuery('.more-rules').hide(); }
    4547    else { jQuery('.more-rules').show(); }
    46     document.querySelector('.cf-container-carbon_fields_container_sky_login_redirect button.cf-complex__inserter-button').textContent = 'Add rule';
     48    var ruleBtn = document.querySelector('.cf-container-carbon_fields_container_sky_login_redirect button.cf-complex__inserter-button')
     49    if (ruleBtn) {
     50      ruleBtn.textContent = 'Add rule';
     51    }
    4752  }, 10);
    4853
  • sky-login-redirect/trunk/readme.txt

    r2882929 r2883876  
    44Tags: login redirect, login customizer, login menu, woocommerce login, login, edd login, modal login, modal customizer
    55Requires at least: 3.0
    6 Tested up to: 6.1.1
     6Tested up to: 6.2.0
    77Requires PHP: 7
    8 Stable tag: 3.6.8
     8Stable tag: 3.6.9
    99License: GPLv3 or later
    1010
     
    6262== Changelog ==
    6363
    64 = 3.6.8 - 2023-03-19 =
    65 *   Enhancement - improve tab spacing and legibility
    66 *   Enhancement - solve more PHP8 warnings
    67 *   Update - tested comptability with WC 7.5.0
     64= 3.6.9 - 2023-03-20 =
     65*   Enhancement - solve an undefined JS var
     66*   Enhancement - only load assets on our plugin page
     67*   Update - tested comptability with WP 6.2.0
    6868*   Update - FS library
    69 *   Update - CF library
    7069
    7170Older versions changes can be found in [the changelog](https://utopique.net/products/sky-login-redirect-premium/#changelog "Sky Login Redirect changelog")
  • sky-login-redirect/trunk/sky-login-redirect.php

    r2882929 r2883876  
    55 * Plugin URI: https://utopique.net/products/sky-login-redirect-premium/
    66 * Description: Redirects users to the page they were prior to logging in or out. Features an awesome login customizer.
    7  * Version: 3.6.8
     7 * Version: 3.6.9
    88 * Author: Utopique
    99 * Author URI: https://utopique.net/
    1010 * Developer: Utopique
    1111 * Developer URI: https://utopique.net/
    12  * Copyright: (c) 2009-2022 Utopique
     12 * Copyright: (c) 2009-2023 Utopique
    1313 * Text Domain: sky-login-redirect
    1414 * Domain Path: /languages
    1515 * License: GPLv2 or later
    1616 * Requires at least: 4.7
    17  * Tested up to: 6.1.1
     17 * Tested up to: 6.2.0
    1818 * Requires PHP: 7
    1919 * WC requires at least: 3.3
     
    3636
    3737// current version
    38 define( 'SLR_VERSION', '3.6.8' );
     38define( 'SLR_VERSION', '3.6.9' );
    3939/**
    4040 * FS
     
    602602       
    603603        if ( in_array( $hook, $array ) ) {
    604             wp_enqueue_style(
    605                 'utopique-elements',
    606                 plugins_url( 'lib/css/elements.css', __FILE__ ),
    607                 false,
    608                 SLR_VERSION,
    609                 'all'
    610             );
    611             wp_enqueue_style(
    612                 'slr',
    613                 plugins_url( 'lib/css/slr.css', __FILE__ ),
    614                 false,
    615                 SLR_VERSION,
    616                 'all'
    617             );
    618             wp_enqueue_script(
    619                 'slr-js',
    620                 plugins_url( 'lib/js/slr.js', __FILE__ ),
    621                 [ 'jquery' ],
    622                 SLR_VERSION,
    623                 true
    624             );
    625             wp_localize_script( 'slr-js', 'SLR', array(
    626                 'upgrade_url'      => Sky_Login_Redirect_fs()->get_upgrade_url(),
    627                 'pro_feature'      => __( 'unlock with Pro version', 'sky-login-redirect' ),
    628                 'business_feature' => __( 'unlock with Business version', 'sky-login-redirect' ),
    629             ) );
    630             // Codemirror editor
     604            // Only on our plugin page
    631605           
    632606            if ( $hook === $array[0] ) {
     607                wp_enqueue_style(
     608                    'utopique-elements',
     609                    plugins_url( 'lib/css/elements.css', __FILE__ ),
     610                    false,
     611                    SLR_VERSION,
     612                    'all'
     613                );
     614                wp_enqueue_style(
     615                    'slr',
     616                    plugins_url( 'lib/css/slr.css', __FILE__ ),
     617                    false,
     618                    SLR_VERSION,
     619                    'all'
     620                );
     621                wp_enqueue_script(
     622                    'slr-js',
     623                    plugins_url( 'lib/js/slr.js', __FILE__ ),
     624                    [ 'jquery' ],
     625                    SLR_VERSION,
     626                    true
     627                );
     628                wp_localize_script( 'slr-js', 'SLR', array(
     629                    'upgrade_url'      => Sky_Login_Redirect_fs()->get_upgrade_url(),
     630                    'pro_feature'      => __( 'unlock with Pro version', 'sky-login-redirect' ),
     631                    'business_feature' => __( 'unlock with Business version', 'sky-login-redirect' ),
     632                ) );
     633                // Codemirror editor
    633634                $cm_css['codeEditor'] = wp_enqueue_code_editor( [
    634635                    'type' => 'text/css',
Note: See TracChangeset for help on using the changeset viewer.