Skip to content

Commit bfc5f8e

Browse files
committed
Merge branch 'trunk' into spanish-translations
# Conflicts: # languages/wp-module-onboarding-es_ES-nfd-onboarding.json # languages/wp-module-onboarding-es_ES.l10n.php # languages/wp-module-onboarding-es_ES.po # languages/wp-module-onboarding.pot
2 parents 45402a4 + 01129c8 commit bfc5f8e

File tree

101 files changed

+4750
-4864
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+4750
-4864
lines changed

bootstrap.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function nfd_wp_module_onboarding_register() {
2424

2525
// Set Global Constants
2626
if ( ! defined( 'NFD_ONBOARDING_VERSION' ) ) {
27-
define( 'NFD_ONBOARDING_VERSION', '2.6.5' );
27+
define( 'NFD_ONBOARDING_VERSION', '2.6.6' );
2828
}
2929
if ( ! defined( 'NFD_ONBOARDING_DIR' ) ) {
3030
define( 'NFD_ONBOARDING_DIR', __DIR__ );
@@ -72,4 +72,12 @@ function nfd_wp_module_onboarding_register() {
7272
);
7373
// Handle Module Disable if Non-Ecommerce
7474
ModuleController::init();
75+
76+
// Clear site capabilities transient after onboarding is completed so CTBs are accessible right away
77+
add_action(
78+
'newfold/onboarding/completed',
79+
function () {
80+
delete_transient( 'nfd_site_capabilities' );
81+
}
82+
);
7583
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)