5.16.0 #33

Merged
Tetrakern merged 51 commits from next_update into main 2024-05-10 00:14:48 +08:00
3 changed files with 1 additions and 13 deletions
Showing only changes of commit 9805ae705c - Show all commits

View File

@ -1490,5 +1490,4 @@ define( 'CONSTANT_NAME', value );
| FICTIONEER_ENABLE_BROWSER_NOTES | boolean | Whether to inform visitors of missing browser features. Default `false`.
| FICTIONEER_DEFER_SCRIPTS | boolean | Whether to defer scripts or load them in the footer. Default `true`.
| FICTIONEER_ENABLE_ASYNC_ONLOAD_PATTERN | boolean | Whether the [onload pattern](https://www.filamentgroup.com/lab/load-css-simpler/) for asynchronous CSS loading is used. Default `true`.
| FICTIONEER_FAST_REQUESTS | boolean | Whether to enable exiting early for fast AJAX request. Default `true`.
| FICTIONEER_EXAMPLE_CHAPTER_ICONS | array | Collection of example Font Awesome icon class strings.

View File

@ -396,11 +396,6 @@ if ( ! defined( 'FICTIONEER_ENABLE_ASYNC_ONLOAD_PATTERN' ) ) {
define( 'FICTIONEER_ENABLE_ASYNC_ONLOAD_PATTERN', true );
}
// Boolean: Asynchronous loading via onload pattern
if ( ! defined( 'FICTIONEER_FAST_REQUESTS' ) ) {
define( 'FICTIONEER_FAST_REQUESTS', true );
}
/*
* Arrays
*/

View File

@ -1441,12 +1441,6 @@ function fictioneer_fast_ajax() {
}
}
if (
FICTIONEER_FAST_REQUESTS &&
(
isset( $_REQUEST['fcn_fast_ajax'] ) ||
isset( $_REQUEST['fcn_fast_comment_ajax'] )
)
) {
if ( isset( $_REQUEST['fcn_fast_ajax'] ) || isset( $_REQUEST['fcn_fast_comment_ajax'] ) ) {
add_action( 'init', 'fictioneer_fast_ajax', 99999 );
}