Changeset 2689697
- Timestamp:
- 03/06/2022 09:30:16 PM (4 years ago)
- Location:
- custom-codes/trunk
- Files:
-
- 19 edited
-
custom-codes.php (modified) (1 diff)
-
freemius/includes/class-freemius.php (modified) (4 diffs)
-
freemius/includes/managers/class-fs-admin-notice-manager.php (modified) (1 diff)
-
freemius/includes/sdk/Exceptions/ArgumentNotExistException.php (modified) (1 diff)
-
freemius/includes/sdk/Exceptions/EmptyArgumentException.php (modified) (1 diff)
-
freemius/includes/sdk/Exceptions/Exception.php (modified) (1 diff)
-
freemius/includes/sdk/Exceptions/InvalidArgumentException.php (modified) (1 diff)
-
freemius/includes/sdk/Exceptions/OAuthException.php (modified) (1 diff)
-
freemius/includes/sdk/FreemiusBase.php (modified) (1 diff)
-
freemius/includes/sdk/FreemiusWordPress.php (modified) (1 diff)
-
freemius/require.php (modified) (1 diff)
-
freemius/start.php (modified) (1 diff)
-
freemius/templates/account/partials/addon.php (modified) (1 diff)
-
freemius/templates/ajax-loader.php (modified) (1 diff)
-
freemius/templates/debug.php (modified) (4 diffs)
-
freemius/templates/firewall-issues-js.php (modified) (2 diffs)
-
freemius/templates/partials/network-activation.php (modified) (1 diff)
-
freemius/templates/sticky-admin-notice-js.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-codes/trunk/custom-codes.php
r2604972 r2689697 17 17 * Text Domain: custom-codes 18 18 * Domain Path: /languages 19 * Version: 2. 2.919 * Version: 2.3 20 20 * 21 21 */ 22 22 defined( 'ABSPATH' ) || die( 'No script kiddies please!' ); 23 define( 'CODES_VERSION', '2. 2.9' );23 define( 'CODES_VERSION', '2.3' ); 24 24 define( 'CODES_DEBUG', false ); 25 25 // Paths. -
custom-codes/trunk/freemius/includes/class-freemius.php
r2474468 r2689697 3551 3551 */ 3552 3552 static function _toggle_debug_mode() { 3553 check_admin_referer( 'fs_toggle_debug_mode' ); 3554 3553 3555 if ( ! is_super_admin() ) { 3554 3556 return; … … 3572 3574 */ 3573 3575 static function _get_debug_log() { 3576 check_admin_referer( 'fs_get_debug_log' ); 3577 3578 if ( ! is_super_admin() ) { 3579 return; 3580 } 3581 3582 $limit = min( ! empty( $_POST['limit'] ) ? absint( $_POST['limit'] ) : 200, 200 ); 3583 $offset = min( ! empty( $_POST['offset'] ) ? absint( $_POST['offset'] ) : 200, 200 ); 3584 3574 3585 $logs = FS_Logger::load_db_logs( 3575 3586 fs_request_get( 'filters', false, 'post' ), 3576 ! empty( $_POST['limit'] ) && is_numeric( $_POST['limit'] ) ? $_POST['limit'] : 200,3577 ! empty( $_POST['offset'] ) && is_numeric( $_POST['offset'] ) ? $_POST['offset'] : 03587 $limit, 3588 $offset 3578 3589 ); 3579 3590 … … 4448 4459 */ 4449 4460 function _email_about_firewall_issue() { 4461 check_admin_referer( 'fs_resolve_firewall_issues' ); 4462 4463 if ( ! current_user_can( is_multisite() ? 'manage_options' : 'activate_plugins' ) ) { 4464 return; 4465 } 4466 4450 4467 $this->_admin_notices->remove_sticky( 'failed_connect_api' ); 4451 4468 … … 4522 4539 */ 4523 4540 function _retry_connectivity_test() { 4541 check_admin_referer( 'fs_retry_connectivity_test' ); 4542 4543 if ( ! current_user_can( is_multisite() ? 'manage_options' : 'activate_plugins' ) ) { 4544 return; 4545 } 4546 4524 4547 $this->_admin_notices->remove_sticky( 'failed_connect_api_first' ); 4525 4548 -
custom-codes/trunk/freemius/includes/managers/class-fs-admin-notice-manager.php
r2418724 r2689697 176 176 */ 177 177 function dismiss_notice_ajax_callback() { 178 $this->_sticky_storage->remove( $_POST['message_id'] ); 178 check_admin_referer( 'fs_dismiss_notice_action' ); 179 180 if ( ! is_numeric( $_POST['message_id'] ) ) { 181 $this->_sticky_storage->remove( $_POST['message_id'] ); 182 } 183 179 184 wp_die(); 180 185 } -
custom-codes/trunk/freemius/includes/sdk/Exceptions/ArgumentNotExistException.php
r2418724 r2689697 1 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) { 3 exit; 4 } 5 2 6 if ( ! class_exists( 'Freemius_InvalidArgumentException' ) ) { 3 7 exit; -
custom-codes/trunk/freemius/includes/sdk/Exceptions/EmptyArgumentException.php
r2418724 r2689697 1 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) { 3 exit; 4 } 5 2 6 if ( ! class_exists( 'Freemius_InvalidArgumentException' ) ) { 3 7 exit; -
custom-codes/trunk/freemius/includes/sdk/Exceptions/Exception.php
r2418724 r2689697 1 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) { 3 exit; 4 } 5 2 6 if ( ! class_exists( 'Freemius_Exception' ) ) { 3 7 /** -
custom-codes/trunk/freemius/includes/sdk/Exceptions/InvalidArgumentException.php
r2418724 r2689697 1 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) { 3 exit; 4 } 5 2 6 if ( ! class_exists( 'Freemius_Exception' ) ) { 3 7 exit; -
custom-codes/trunk/freemius/includes/sdk/Exceptions/OAuthException.php
r2418724 r2689697 1 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) { 3 exit; 4 } 5 2 6 if ( ! class_exists( 'Freemius_Exception' ) ) { 3 7 exit; -
custom-codes/trunk/freemius/includes/sdk/FreemiusBase.php
r2418724 r2689697 16 16 */ 17 17 18 if ( ! defined( 'ABSPATH' ) ) { 19 exit; 20 } 21 18 22 if ( ! defined( 'FS_API__VERSION' ) ) { 19 23 define( 'FS_API__VERSION', '1' ); -
custom-codes/trunk/freemius/includes/sdk/FreemiusWordPress.php
r2418724 r2689697 15 15 * under the License. 16 16 */ 17 if ( ! defined( 'ABSPATH' ) ) { 18 exit; 19 } 17 20 18 21 require_once dirname( __FILE__ ) . '/FreemiusBase.php'; -
custom-codes/trunk/freemius/require.php
r2418724 r2689697 6 6 * @since 1.1.9 7 7 */ 8 9 if ( ! defined( 'ABSPATH' ) ) { 10 exit; 11 } 8 12 9 13 // Configuration should be loaded first. -
custom-codes/trunk/freemius/start.php
r2474468 r2689697 16 16 * @var string 17 17 */ 18 $this_sdk_version = '2.4. 2';18 $this_sdk_version = '2.4.3'; 19 19 20 20 #region SDK Selection Logic -------------------------------------------------------------------- -
custom-codes/trunk/freemius/templates/account/partials/addon.php
r2418724 r2689697 1 1 <?php 2 3 if ( ! defined( 'ABSPATH' ) ) { 4 exit; 5 } 6 2 7 /** 3 8 * @var array $VARS -
custom-codes/trunk/freemius/templates/ajax-loader.php
r2418724 r2689697 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) { 3 exit; 4 } 5 ?> 1 6 <div class="fs-ajax-loader" style="display: none"><?php for ( $i = 1; $i <= 8; $i ++ ) : ?><div class="fs-ajax-loader-bar fs-ajax-loader-bar-<?php echo $i ?>"></div><?php endfor ?></div> -
custom-codes/trunk/freemius/templates/debug.php
r2418724 r2689697 38 38 $.post( ajaxurl, { 39 39 action: 'fs_toggle_debug_mode', 40 // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline. 41 _wpnonce : <?php echo wp_json_encode( wp_create_nonce( 'fs_toggle_debug_mode' ) ); ?>, 40 42 is_on : ($(this).hasClass( 'fs-on' ) ? 1 : 0) 41 43 }, function ( response ) { … … 112 114 $.post(ajaxurl, { 113 115 action : 'fs_get_db_option', 114 _wpnonce : '<?php echo wp_create_nonce( 'fs_get_db_option' ) ?>', 116 // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline. 117 _wpnonce : <?php echo wp_json_encode( wp_create_nonce( 'fs_get_db_option' ) ); ?>, 115 118 option_name: optionName 116 119 }, function (response) { … … 132 135 $.post(ajaxurl, { 133 136 action : 'fs_set_db_option', 134 _wpnonce : '<?php echo wp_create_nonce( 'fs_set_db_option' ) ?>', 137 // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline. 138 _wpnonce : <?php echo wp_json_encode( wp_create_nonce( 'fs_set_db_option' ) ); ?>, 135 139 option_name : optionName, 136 140 option_value: optionValue … … 725 729 $.post(ajaxurl, { 726 730 action : 'fs_get_debug_log', 731 // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline. 732 _wpnonce : <?php echo wp_json_encode( wp_create_nonce( 'fs_get_debug_log' ) ); ?>, 727 733 filters: filters, 728 734 offset : offset, -
custom-codes/trunk/freemius/templates/firewall-issues-js.php
r2418724 r2689697 23 23 ajaxActionSuffix = notice.attr( 'data-manager-id' ).replace( ':', '-' ); 24 24 25 var data = { 26 action : 'fs_resolve_firewall_issues_' + ajaxActionSuffix, 27 error_type: error_type 28 }; 25 var data = { 26 action : 'fs_resolve_firewall_issues_' + ajaxActionSuffix, 27 // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline. 28 _wpnonce : <?php echo wp_json_encode( wp_create_nonce( 'fs_resolve_firewall_issues' ) ); ?>, 29 error_type: error_type 30 }; 29 31 30 32 if ( 'squid' === error_type ) { … … 40 42 41 43 if ( 'retry_ping' === error_type ) { 42 data.action = 'fs_retry_connectivity_test_' + ajaxActionSuffix; 44 data.action = 'fs_retry_connectivity_test_' + ajaxActionSuffix; 45 // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline. 46 data._wpnonce = <?php echo wp_json_encode( wp_create_nonce( 'fs_retry_connectivity_test' ) ); ?>; 43 47 } 44 48 -
custom-codes/trunk/freemius/templates/partials/network-activation.php
r2418724 r2689697 1 1 <?php 2 3 if ( ! defined( 'ABSPATH' ) ) { 4 exit; 5 } 6 2 7 /** 3 8 * @var array $VARS -
custom-codes/trunk/freemius/templates/sticky-admin-notice-js.php
r2418724 r2689697 24 24 notice.fadeOut( 'fast', function() { 25 25 var data = { 26 action : 'fs_dismiss_notice_action_' + ajaxActionSuffix, 26 action : 'fs_dismiss_notice_action_' + ajaxActionSuffix, 27 // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline. 28 _wpnonce : <?php echo wp_json_encode( wp_create_nonce( 'fs_dismiss_notice_action' ) ); ?>, 27 29 message_id: id 28 30 }; -
custom-codes/trunk/readme.txt
r2604972 r2689697 5 5 Donate link: https://www.codekitwp.com/ 6 6 Requires PHP: 5.6 7 Tested up to: 5.97 Tested up to: 6.0 8 8 Stable tag: trunk 9 9 License: MIT … … 143 143 144 144 == Changelog == 145 = 2.3 (2022-03-07 00:23 EET) = 146 * Freemius SDK updated to 2.4.3 147 * Tested on WordPress 6.0 148 145 149 = 2.2.9 (2021-09-25 23:24 EET) = 146 150 * Spacing added to end of the editor
Note: See TracChangeset
for help on using the changeset viewer.