Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…oarding into update/node
  • Loading branch information
arunshenoy99 committed Feb 26, 2024
2 parents 7492b24 + 516c9c7 commit ec1320d
Show file tree
Hide file tree
Showing 77 changed files with 3,695 additions and 9,158 deletions.
2 changes: 1 addition & 1 deletion bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function nfd_wp_module_onboarding_register() {

// Set Global Constants
if ( ! defined( 'NFD_ONBOARDING_VERSION' ) ) {
define( 'NFD_ONBOARDING_VERSION', '2.1.0' );
define( 'NFD_ONBOARDING_VERSION', '2.1.1' );
}
if ( ! defined( 'NFD_ONBOARDING_DIR' ) ) {
define( 'NFD_ONBOARDING_DIR', __DIR__ );
Expand Down
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.
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.
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.
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.
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
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
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.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"newfold-labs/wp-module-onboarding-data": "^1.1.0",
"newfold-labs/wp-module-patterns": "^0.1.14",
"newfold-labs/wp-module-install-checker": "^1.0",
"newfold-labs/wp-module-facebook": "^1.0.6"
"newfold-labs/wp-module-facebook": "^1.0.6",
"wp-forge/helpers": "^2.0"
},
"require-dev": {
"wp-phpunit/wp-phpunit": "^6.2",
Expand Down
142 changes: 141 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion includes/LoginRedirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

use NewfoldLabs\WP\Module\Onboarding\Data\Data;
use NewfoldLabs\WP\Module\Onboarding\Data\Options;

use function NewfoldLabs\WP\ModuleLoader\container;
use function WP_Forge\Helpers\dataGet;

/**
* Contains functionalities that redirect users to onboarding upon logging into WordPress.
Expand Down Expand Up @@ -65,7 +67,7 @@ public static function filter_redirect( $original_redirect, $user ) {

// Don't redirect to onboarding if onboarding was exited or completed.
$flow_data = get_option( Options::get_option_name( 'flow' ), false );
if ( data_get( $flow_data, 'hasExited' ) || data_get( $flow_data, 'isComplete' ) ) {
if ( dataGet( $flow_data, 'hasExited' ) || dataGet( $flow_data, 'isComplete' ) ) {
return $original_redirect;
}

Expand Down
Loading

0 comments on commit ec1320d

Please sign in to comment.