Changeset 2684506
- Timestamp:
- 02/24/2022 04:29:26 PM (4 years ago)
- Location:
- book-press/trunk
- Files:
-
- 19 edited
-
README.txt (modified) (3 diffs)
-
book-press.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)
Legend:
- Unmodified
- Added
- Removed
-
book-press/trunk/README.txt
r2599169 r2684506 2 2 Contributors: blackandwhitedigital, freemius 3 3 Tags: Book, chapters, author, self-publish, ebook, novel, ePub, writer, books 4 Requires at least: 4.45 Tested up to: 5. 8.16 Stable tag: 1.2. 24 Requires at least: 5 5 Tested up to: 5.9.1 6 Stable tag: 1.2.3 7 7 License: GPLv2 8 8 Donate Link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RSXSRDQ7HANFQ&source=wordpresspluginpage … … 110 110 111 111 == Changelog == 112 113 = 1.2.3- 24 Feburary 2022= 114 *Security Fix 115 112 116 = 1.2.2 - 15 September 2021 = 113 117 * Update Licencing SDK 2.4.2 … … 196 200 197 201 == Upgrade Notice == 202 = 1.2.3- 24 Feburary 2022= 203 *Security Fix 204 198 205 = 1.1.20 - 07 October 2020 = 199 206 Fix Unwanted text on cover page -
book-press/trunk/book-press.php
r2599169 r2684506 17 17 * Plugin URI: https://bookpress.net/ 18 18 * Description: Tools for authors to write and display their books easily on WordPress. 19 * Version: 1.2. 219 * Version: 1.2.3 20 20 * Author: Black and White Digital Ltd 21 21 * Author URI: https://www.blackandwhitedigital.net/ -
book-press/trunk/freemius/includes/class-freemius.php
r2599169 r2684506 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 -
book-press/trunk/freemius/includes/managers/class-fs-admin-notice-manager.php
r2042138 r2684506 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 } -
book-press/trunk/freemius/includes/sdk/Exceptions/ArgumentNotExistException.php
r2000737 r2684506 1 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) { 3 exit; 4 } 5 2 6 if ( ! class_exists( 'Freemius_InvalidArgumentException' ) ) { 3 7 exit; -
book-press/trunk/freemius/includes/sdk/Exceptions/EmptyArgumentException.php
r2000737 r2684506 1 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) { 3 exit; 4 } 5 2 6 if ( ! class_exists( 'Freemius_InvalidArgumentException' ) ) { 3 7 exit; -
book-press/trunk/freemius/includes/sdk/Exceptions/Exception.php
r2000737 r2684506 1 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) { 3 exit; 4 } 5 2 6 if ( ! class_exists( 'Freemius_Exception' ) ) { 3 7 /** -
book-press/trunk/freemius/includes/sdk/Exceptions/InvalidArgumentException.php
r2000737 r2684506 1 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) { 3 exit; 4 } 5 2 6 if ( ! class_exists( 'Freemius_Exception' ) ) { 3 7 exit; -
book-press/trunk/freemius/includes/sdk/Exceptions/OAuthException.php
r2000737 r2684506 1 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) { 3 exit; 4 } 5 2 6 if ( ! class_exists( 'Freemius_Exception' ) ) { 3 7 exit; -
book-press/trunk/freemius/includes/sdk/FreemiusBase.php
r2353981 r2684506 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' ); -
book-press/trunk/freemius/includes/sdk/FreemiusWordPress.php
r2451979 r2684506 15 15 * under the License. 16 16 */ 17 if ( ! defined( 'ABSPATH' ) ) { 18 exit; 19 } 17 20 18 21 require_once dirname( __FILE__ ) . '/FreemiusBase.php'; -
book-press/trunk/freemius/require.php
r2000737 r2684506 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. -
book-press/trunk/freemius/start.php
r2599169 r2684506 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 -------------------------------------------------------------------- -
book-press/trunk/freemius/templates/account/partials/addon.php
r2353981 r2684506 1 1 <?php 2 3 if ( ! defined( 'ABSPATH' ) ) { 4 exit; 5 } 6 2 7 /** 3 8 * @var array $VARS -
book-press/trunk/freemius/templates/ajax-loader.php
r2000737 r2684506 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> -
book-press/trunk/freemius/templates/debug.php
r2292053 r2684506 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, -
book-press/trunk/freemius/templates/firewall-issues-js.php
r2000737 r2684506 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 -
book-press/trunk/freemius/templates/partials/network-activation.php
r2292053 r2684506 1 1 <?php 2 3 if ( ! defined( 'ABSPATH' ) ) { 4 exit; 5 } 6 2 7 /** 3 8 * @var array $VARS -
book-press/trunk/freemius/templates/sticky-admin-notice-js.php
r2000737 r2684506 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 };
Note: See TracChangeset
for help on using the changeset viewer.