Changeset 2883876
- Timestamp:
- 03/20/2023 11:03:33 PM (3 years ago)
- Location:
- sky-login-redirect/trunk
- Files:
-
- 7 edited
-
freemius/includes/class-fs-api.php (modified) (2 diffs)
-
freemius/includes/sdk/FreemiusWordPress.php (modified) (1 diff)
-
freemius/start.php (modified) (1 diff)
-
lib/css/slr.css (modified) (1 diff)
-
lib/js/slr.js (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
sky-login-redirect.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sky-login-redirect/trunk/freemius/includes/class-fs-api.php
r2882929 r2883876 379 379 } 380 380 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; 382 397 } 383 398 … … 463 478 if ( $is_http ) { 464 479 Freemius_Api_WordPress::SetHttp(); 465 } else {480 } else if ( method_exists( 'Freemius_Api_WordPress', 'SetHttps' ) ) { 466 481 Freemius_Api_WordPress::SetHttps(); 467 482 } -
sky-login-redirect/trunk/freemius/includes/sdk/FreemiusWordPress.php
r2882929 r2883876 575 575 #---------------------------------------------------------------------------------- 576 576 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 577 592 /** 578 593 * Ping API to test connectivity. -
sky-login-redirect/trunk/freemius/start.php
r2882929 r2883876 16 16 * @var string 17 17 */ 18 $this_sdk_version = '2.5. 4.2';18 $this_sdk_version = '2.5.5'; 19 19 20 20 #region SDK Selection Logic -------------------------------------------------------------------- -
sky-login-redirect/trunk/lib/css/slr.css
r2882929 r2883876 123 123 border-style: solid; 124 124 -webkit-appearance: none; 125 appearance: none; 125 126 border-radius: 3px; 126 127 white-space: nowrap; -
sky-login-redirect/trunk/lib/js/slr.js
r2819733 r2883876 1 "use strict"; 2 1 3 jQuery(document).ready(function () { 2 4 … … 44 46 if (jQuery(".cf-complex__tabs--tabbed-vertical .cf-complex__inserter").length > 0) { jQuery('.more-rules').hide(); } 45 47 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 } 47 52 }, 10); 48 53 -
sky-login-redirect/trunk/readme.txt
r2882929 r2883876 4 4 Tags: login redirect, login customizer, login menu, woocommerce login, login, edd login, modal login, modal customizer 5 5 Requires at least: 3.0 6 Tested up to: 6. 1.16 Tested up to: 6.2.0 7 7 Requires PHP: 7 8 Stable tag: 3.6. 88 Stable tag: 3.6.9 9 9 License: GPLv3 or later 10 10 … … 62 62 == Changelog == 63 63 64 = 3.6. 8 - 2023-03-19=65 * Enhancement - improve tab spacing and legibility66 * Enhancement - solve more PHP8 warnings67 * Update - tested comptability with W C 7.5.064 = 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 68 68 * Update - FS library 69 * Update - CF library70 69 71 70 Older 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 5 5 * Plugin URI: https://utopique.net/products/sky-login-redirect-premium/ 6 6 * Description: Redirects users to the page they were prior to logging in or out. Features an awesome login customizer. 7 * Version: 3.6. 87 * Version: 3.6.9 8 8 * Author: Utopique 9 9 * Author URI: https://utopique.net/ 10 10 * Developer: Utopique 11 11 * Developer URI: https://utopique.net/ 12 * Copyright: (c) 2009-202 2Utopique12 * Copyright: (c) 2009-2023 Utopique 13 13 * Text Domain: sky-login-redirect 14 14 * Domain Path: /languages 15 15 * License: GPLv2 or later 16 16 * Requires at least: 4.7 17 * Tested up to: 6. 1.117 * Tested up to: 6.2.0 18 18 * Requires PHP: 7 19 19 * WC requires at least: 3.3 … … 36 36 37 37 // current version 38 define( 'SLR_VERSION', '3.6. 8' );38 define( 'SLR_VERSION', '3.6.9' ); 39 39 /** 40 40 * FS … … 602 602 603 603 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 631 605 632 606 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 633 634 $cm_css['codeEditor'] = wp_enqueue_code_editor( [ 634 635 'type' => 'text/css',
Note: See TracChangeset
for help on using the changeset viewer.