Next-generation WordPress Onboarding for WordPress sites at Newfold Digital.
composer config repositories.bluehost composer https://bluehost.github.io/satis
composer require newfold-labs/wp-module-onboarding
Next-generation WordPress Onboarding via Newfold Module
License: GNU General Public License v2.0
Tests from the bluehost plugin that test components from this module should be added to this module.
More tests should be written to verify that the components properly render in the plugin and function. These should be universal tests that can pass no matter which brand plugin runs them. Use cypress environment variables to enable this.
Refer to this task for more information: bluehost/bluehost-wordpress-plugin#594
This module is integrated with the Hostgator plugin, but only the BR region. Currently the module tests are skipped due to this restriction on region.
We've added a setRegion
and setLanguage
command for cypress. See them in use here: wp-plugin-hostgator/tests/cypress/integration/language.cy.js
Let's get the onboarding tests updated so they can pass in hostgator. This may take some special care as the tests look like they are expecting english content, so they may need updating to support multi-lingual philosophy. We can check for attributes and that sections exist rather than that the content is in english for example.
PHP Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-content/plugins/bluehost-wordpress-plugin/vendor/newfold-labs/wp-module-onboarding/includes/RestApi/RestApiFilter.php on line 134
The code in question looks to be:
public static function is_request_from_onboarding_flow( \WP_REST_Request $request ) {
return false !== stripos( $request->get_header( 'referer' ), 'page=nfd-onboarding' );
}
which could change to something like:
public static function is_request_from_onboarding_flow( \WP_REST_Request $request ) {
if ( !$request->get_header('referer') ) {
return false;
} else {
return false !== stripos( $request->get_header( 'referer' ), 'page=nfd-onboarding' );
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.